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 e00d5c5 commit 4bf713aCopy full SHA for 4bf713a
mkdocs_git_revision_date_localized_plugin/dates.py
@@ -1,7 +1,7 @@
1
2
from babel.dates import format_date, get_timezone
3
4
-from datetime import datetime
+from datetime import datetime, timezone
5
from typing import Any, Dict
6
7
@@ -26,7 +26,7 @@ def get_date_formats(
26
assert time_zone is not None
27
assert locale is not None
28
29
- utc_revision_date = datetime.fromtimestamp(int(unix_timestamp))
+ utc_revision_date = datetime.fromtimestamp(int(unix_timestamp), tz=timezone.utc)
30
loc_revision_date = utc_revision_date.replace(
31
tzinfo=get_timezone("UTC")
32
).astimezone(get_timezone(time_zone))
0 commit comments