Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyrogram/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ def zero_datetime() -> datetime:


def timestamp_to_datetime(ts: Optional[int]) -> Optional[datetime]:
return datetime.fromtimestamp(ts).replace(tzinfo=timezone.utc) if ts else None
return datetime.fromtimestamp(ts, tz=timezone.utc) if ts else None


def datetime_to_timestamp(dt: Optional[datetime]) -> Optional[int]:
Expand Down