mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 20:14:51 +00:00
Revert "Make timestamp_to_datetime timezone aware (#966)"
This reverts commit b309caccd7.
This commit is contained in:
parent
1c0ddc9a8f
commit
9deec03b87
1 changed files with 1 additions and 1 deletions
|
|
@ -350,7 +350,7 @@ def zero_datetime() -> datetime:
|
|||
|
||||
|
||||
def timestamp_to_datetime(ts: Optional[int]) -> Optional[datetime]:
|
||||
return datetime.fromtimestamp(ts, timezone.utc) if ts else None
|
||||
return datetime.fromtimestamp(ts) if ts else None
|
||||
|
||||
|
||||
def datetime_to_timestamp(dt: Optional[datetime]) -> Optional[int]:
|
||||
|
|
|
|||
Loading…
Reference in a new issue