1
0

In article.pug cache ToClientTimezone() to a var for futher use.

This commit is contained in:
Alexander Andreev 2024-03-03 21:32:11 +04:00
parent 6dc826b0ca
commit 6775b05d70
Signed by: Arav
GPG Key ID: 25969B23DCB5CA34

View File

@ -22,5 +22,6 @@ block content
h2= title h2= title
div.menu div.menu
a(href='/stuff#articles') Go back to articles list a(href='/stuff#articles') Go back to articles list
time(datetime=util.ToClientTimezone(date, r).Format("2006-01-02")) #{util.ToClientTimezone(date, r).Format("02 January 2006")} - dctz := util.ToClientTimezone(date, r)
time(datetime=dctz.Format("2006-01-02")) #{dctz.Format("02 January 2006")}
| !{body} | !{body}