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 84c823b commit fc838cfCopy full SHA for fc838cf
pyrogram/utils.py
@@ -466,7 +466,7 @@ def zero_datetime() -> datetime:
466
467
468
def timestamp_to_datetime(ts: Optional[int]) -> Optional[datetime]:
469
- return datetime.fromtimestamp(ts).replace(tzinfo=timezone.utc) if ts else None
+ return datetime.fromtimestamp(ts, tz=timezone.utc) if ts else None
470
471
472
def datetime_to_timestamp(dt: Optional[datetime]) -> Optional[int]:
0 commit comments