mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-03-16 12:25:45 +01: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…
Add table
Reference in a new issue