Skip to content

Commit b70b095

Browse files
committed
Parse enqueued time as UTC
Fixes Azure#72.
1 parent 5587ea9 commit b70b095

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)