Skip to content

Commit

Permalink
Fix timestamp parser
Browse files Browse the repository at this point in the history
  • Loading branch information
4Kaylum committed Jul 6, 2023
1 parent 9fe7491 commit 76592d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion novus/utils/times.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def parse_timestamp(timestamp: dt | str | Snowflake | None) -> DiscordDatetime |
elif hasattr(timestamp, "id"):
return (
DiscordDatetime
.fromtimestamp((timestamp.id >> 22) + 1_420_070_400_000)
.fromtimestamp(((timestamp.id >> 22) + 1_420_070_400_000) / 1e3)
.replace(tzinfo=timezone.utc)
)
return parsed
Expand Down

0 comments on commit 76592d3

Please sign in to comment.