Skip to content

Commit 0871895

Browse files
authored
Merge pull request Azure#73 from vjrantal/fix-72
Parse enqueued time as UTC
2 parents 5587ea9 + b70b095 commit 0871895

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

azure/eventhub/common.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def enqueued_time(self):
119119
"""
120120
timestamp = self._annotations.get(EventData.PROP_TIMESTAMP, None)
121121
if timestamp:
122-
return datetime.datetime.fromtimestamp(float(timestamp)/1000)
122+
return datetime.datetime.utcfromtimestamp(float(timestamp)/1000)
123123
return None
124124

125125
@property

0 commit comments

Comments
 (0)