mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-04-20 17:11:59 +03:00
Fix conversion and time zone issues while downloading updates that occurred while the script was disabled
This commit is contained in:
parent
516a2e7435
commit
1e8d3642da
|
@ -232,7 +232,7 @@ class MessageBox:
|
|||
self.map[ENTRY_SECRET] = State(pts=session_state.qts, deadline=deadline)
|
||||
self.map.update((s.channel_id, State(pts=s.pts, deadline=deadline)) for s in channel_states)
|
||||
|
||||
self.date = datetime.datetime.fromtimestamp(session_state.date).replace(tzinfo=datetime.timezone.utc)
|
||||
self.date = datetime.datetime.utcfromtimestamp(session_state.date).replace(tzinfo=datetime.timezone.utc)
|
||||
self.seq = session_state.seq
|
||||
self.next_deadline = ENTRY_ACCOUNT
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user