Skip to content

Commit

Permalink
Use UTC in from_timestamp (breaking change) (#1485)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bibo-Joshi authored and tsnoam committed Aug 28, 2019
1 parent 2c92c35 commit 425912d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion telegram/utils/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def from_timestamp(unixtime):
if not unixtime:
return None

return datetime.fromtimestamp(unixtime)
return datetime.utcfromtimestamp(unixtime)


def mention_html(user_id, name):
Expand Down

0 comments on commit 425912d

Please sign in to comment.