Convert UTC to local time in JS

Also adds classes to row headers to accurately access them in JS.
Updates the serverside date format in view.html to match YYYY-MM-DD HH:MM
This commit is contained in:
TheAMM
2017-05-14 11:19:58 +03:00
parent b147cfeb81
commit cf77b03a6f
3 changed files with 27 additions and 11 deletions

View File

@@ -18,7 +18,7 @@
</div>
<div class="col-md-1">Date:</div>
<div class="col-md-5" data-timestamp="{{ torrent.created_utc_timestamp|int }}">{{ torrent.created_time.strftime('%Y-%m-%d, %H:%M UTC') }}</div>
<div class="col-md-5" data-timestamp="{{ torrent.created_utc_timestamp|int }}">{{ torrent.created_time.strftime('%Y-%m-%d %H:%M UTC') }}</div>
</div>
<div class="row">