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.
2 parents ad38384 + 7edc316 commit a5a6639Copy full SHA for a5a6639
mkdocs_git_revision_date_localized_plugin/util.py
@@ -1,6 +1,7 @@
1
# standard library
2
import logging
3
import os
4
+import time
5
from datetime import datetime
6
7
# 3rd party
@@ -116,7 +117,7 @@ def get_revision_date_for_file(
116
117
118
# create timestamp
119
if not unix_timestamp:
- unix_timestamp = datetime.utcnow().timestamp()
120
+ unix_timestamp = time.time()
121
logging.warning("%s has no git logs, using current timestamp" % path)
122
123
return self._date_formats(unix_timestamp=unix_timestamp, locale=locale)
0 commit comments