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

@@ -19,7 +19,7 @@
<td>
<%= description %>
<br>
<i>Published on <%= f.date(new Date(date), {dateStyle:"short"}) %></i>
<i>Published on <%= f.date(new Date(date), {dateStyle:"short", timeZone:config.timezone?.name}) %></i>
</td>
</tr>
</table>
@@ -27,9 +27,9 @@
<%_ } else if (plugins.posts.list.length) { _%>
<%_ for (const {title, date, link} of plugins.posts.list) { _%>
* [<%= title.trim() %>](<%= link %>)
* *Published on <%= f.date(new Date(date), {dateStyle:"short"}) %>*
* *Published on <%= f.date(new Date(date), {dateStyle:"short", timeZone:config.timezone?.name}) %>*
<%_ } _%>
<%_ } else { _%>
No recent posts
<%_ } _%>
<%_ } _%>
<%_ } _%>