forked from rDrama/rDrama
show log timestamp in local timezone
parent
c8a83b6b1f
commit
45437997c8
|
@ -60,11 +60,6 @@ class ModAction(Base):
|
||||||
years = int(months / 12)
|
years = int(months / 12)
|
||||||
return f"{years}yr ago"
|
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
|
@property
|
||||||
def note(self):
|
def note(self):
|
||||||
|
|
||||||
|
|
|
@ -109,7 +109,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="text-gray-500">
|
<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 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>
|
<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>
|
</div>
|
||||||
|
|
|
@ -16,8 +16,8 @@ set CACHE_VER = {
|
||||||
'css/win98.css': 61,
|
'css/win98.css': 61,
|
||||||
|
|
||||||
'js/award_modal.js': 253,
|
'js/award_modal.js': 253,
|
||||||
'js/bootstrap.js': 273,
|
'js/bootstrap.js': 274,
|
||||||
'js/comments+submission_listing.js': 262,
|
'js/comments+submission_listing.js': 263,
|
||||||
'js/submission_listing.js': 261,
|
'js/submission_listing.js': 261,
|
||||||
'js/emoji_modal.js': 297,
|
'js/emoji_modal.js': 297,
|
||||||
'js/formatting.js': 240,
|
'js/formatting.js': 240,
|
||||||
|
|
Loading…
Reference in New Issue