Use config timezone in all displayed times (#326)

This commit is contained in:
Nixinova
2021-05-27 04:19:24 +12:00
committed by GitHub
parent 67712cd07a
commit 19552e2dc5
8 changed files with 11 additions and 11 deletions

View File

@@ -18,7 +18,7 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M8 5.5a2.5 2.5 0 100 5 2.5 2.5 0 000-5zM4 8a4 4 0 118 0 4 4 0 01-8 0z"></path></svg>
<div class="infos">
<div class="title"><%= title %></div>
<div class="date"><%= f.date(new Date(date), {dateStyle:"short"}) %></div>
<div class="date"><%= f.date(new Date(date), {dateStyle:"short", timeZone:config.timezone?.name}) %></div>
</div>
</div>
<% } %>