mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-10-23 17:36:26 +02:00
Use UTC in from_timestamp (breaking change) (#1485)
This commit is contained in:
parent
2c92c356b8
commit
425912da4a
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue