We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 198fa7b commit 122d64cCopy full SHA for 122d64c
pysap/SAPCAR.py
@@ -252,7 +252,7 @@ def timestamp(self):
252
:return: timestamp in human-readable format
253
:rtype: string
254
"""
255
- 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')
256
257
@timestamp.setter
258
def timestamp(self, timestamp):
tests/sapcar_test.py
@@ -31,7 +31,7 @@
31
class PySAPCARTest(unittest.TestCase):
32
33
test_filename = "test_string.txt"
34
- test_timestamp = "01 Dec 2015 19:48"
+ test_timestamp = "01 Dec 2015 22:48"
35
test_permissions = "-rw-rw-r--"
36
test_string = "The quick brown fox jumps over the lazy dog"
37
0 commit comments