Skip to content

Commit

Permalink
Using UTC instead of local time
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Gallo committed Mar 25, 2016
1 parent 198fa7b commit 122d64c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pysap/SAPCAR.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def timestamp(self):
:return: timestamp in human-readable format
:rtype: string
"""
return datetime.fromtimestamp(self._file_format.timestamp).strftime('%d %b %Y %H:%M')
return datetime.utcfromtimestamp(self._file_format.timestamp).strftime('%d %b %Y %H:%M')

@timestamp.setter
def timestamp(self, timestamp):
Expand Down
2 changes: 1 addition & 1 deletion tests/sapcar_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
class PySAPCARTest(unittest.TestCase):

test_filename = "test_string.txt"
test_timestamp = "01 Dec 2015 19:48"
test_timestamp = "01 Dec 2015 22:48"
test_permissions = "-rw-rw-r--"
test_string = "The quick brown fox jumps over the lazy dog"

Expand Down

0 comments on commit 122d64c

Please sign in to comment.