Skip to content

Commit

Permalink
use the longer time string everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
benfry committed Dec 24, 2014
1 parent aad8f0b commit 36e909e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions libgsync/drive/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ def __init__(self, path, mode = "r"):
self.closed = False
self.description = ""
# https://github.com/iwonbigbro/gsync/issues/73
self.modified_date = datetime.datetime.now().replace(tzinfo=tzutc()).isoformat()
#self.modified_date = datetime.datetime.now().replace(tzinfo=tzutc()).strftime("%Y-%m-%dT%H:%M:%S.%f%z")
#self.modified_date = datetime.datetime.now().replace(tzinfo=tzutc()).isoformat()
self.modified_date = datetime.datetime.now().replace(tzinfo=tzutc()).strftime("%Y-%m-%dT%H:%M:%S.%f%z")

# Private
drive = Drive()
Expand Down
4 changes: 3 additions & 1 deletion libgsync/sync/file/local/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ def get_info(self, path = None):
title=filename,
modifiedDate=datetime.datetime.utcfromtimestamp(
st_info.st_mtime
).replace(tzinfo=tzutc()).isoformat(),
#).isoformat(),
#).replace(tzinfo=tzutc()).isoformat(),
).replace(tzinfo=tzutc()).strftime("%Y-%m-%dT%H:%M:%S.%f%z"),
mimeType=mimetype,
description=st_info,
fileSize=st_info.st_size,
Expand Down

0 comments on commit 36e909e

Please sign in to comment.