From 45437997c8b8b3ead29899e2faa3b8870cc74daf Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 3 Jul 2022 10:38:19 +0200 Subject: [PATCH] show log timestamp in local timezone --- files/classes/mod_logs.py | 5 ----- files/templates/log.html | 2 +- files/templates/util/assetcache.html | 4 ++-- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/files/classes/mod_logs.py b/files/classes/mod_logs.py index e3d2759d1f..9738bb0322 100644 --- a/files/classes/mod_logs.py +++ b/files/classes/mod_logs.py @@ -60,11 +60,6 @@ class ModAction(Base): years = int(months / 12) return f"{years}yr ago" - @property - @lazy - def created_string(self): - return time.strftime('%d %b %Y %H:%M:%S UTC', time.gmtime(self.created_utc)) - @property def note(self): diff --git a/files/templates/log.html b/files/templates/log.html index fc6d326901..9482cf5cef 100644 --- a/files/templates/log.html +++ b/files/templates/log.html @@ -109,7 +109,7 @@
- {{ma.age_string}} + {{ma.age_string}}
diff --git a/files/templates/util/assetcache.html b/files/templates/util/assetcache.html index a125784c89..0cf051ec0d 100644 --- a/files/templates/util/assetcache.html +++ b/files/templates/util/assetcache.html @@ -16,8 +16,8 @@ set CACHE_VER = { 'css/win98.css': 61, 'js/award_modal.js': 253, - 'js/bootstrap.js': 273, - 'js/comments+submission_listing.js': 262, + 'js/bootstrap.js': 274, + 'js/comments+submission_listing.js': 263, 'js/submission_listing.js': 261, 'js/emoji_modal.js': 297, 'js/formatting.js': 240,