We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48d4230 commit 0854967Copy full SHA for 0854967
pyrogram/utils.py
@@ -454,7 +454,7 @@ def zero_datetime() -> datetime:
454
455
456
def timestamp_to_datetime(ts: Optional[int]) -> Optional[datetime]:
457
- return datetime.fromtimestamp(ts) if ts else None
+ return datetime.fromtimestamp(ts).replace(tzinfo=timezone.utc) if ts else None
458
459
460
def datetime_to_timestamp(dt: Optional[datetime]) -> Optional[int]:
0 commit comments