Skip to content

Commit ffa821e

Browse files
author
Gunther Klessinger
committed
fix: 3.9 compatible timezone
1 parent cecc400 commit ffa821e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lcdoc/mkdocs/tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ def __init__(self):
354354
r = reset_if_is_first_loaded_plugin_and_hash_changed(self)
355355
app.setup_logging(mkdlog, name='lcd')
356356
if r:
357-
d = datetime.datetime.now(datetime.UTC).strftime('%Y%m%dT%H%M%SZ')
357+
d = datetime.datetime.now(datetime.timezone.utc).strftime('%Y%m%dT%H%M%SZ')
358358
app.info('Ran reset, cleared stats', reset=r, utc=d, unix=int(time.time()))
359359
Stats[clsn(self)] = {}
360360
PageStats[clsn(self)] = {}

0 commit comments

Comments
 (0)