Use UTC in from_timestamp (breaking change) (#1485)

This commit is contained in:
Bibo-Joshi 2019-08-28 21:06:41 +02:00 committed by Noam Meltzer
parent 2c92c356b8
commit 425912da4a

View file

@ -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):