show log timestamp in local timezone

remotes/1693045480750635534/spooky-22
Aevann1 2022-07-03 10:38:19 +02:00
parent c8a83b6b1f
commit 45437997c8
3 changed files with 3 additions and 8 deletions

View File

@ -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):

View File

@ -109,7 +109,7 @@
</div>
<div class="text-gray-500">
<span class="log--item-age" title="{{ ma.created_string }}">{{ma.age_string}}</span>
<span class="log--item-age" id="{{ma.id}}-age" data-bs-toggle="tooltip" data-bs-placement="bottom" onmouseover="timestamp('{{ma.id}}-age','{{ma.created_utc}}')">{{ma.age_string}}</span>
<a href="{{ma.permalink}}"><i class="far fa-link ml-1 text-muted"></i></a>
<a role="button" class="copy-link" role="button" data-clipboard-text="{{ma.permalink}}"><i class="far fa-copy ml-1 text-muted"></i></a>
</div>

View File

@ -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,