Fix conversion and time zone issues while downloading updates that occurred while the script was disabled

This commit is contained in:
Kacnep89 2023-03-28 11:17:11 +05:00
parent 516a2e7435
commit 1e8d3642da

View File

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