1
0

Changed article's date format.

This commit is contained in:
Alexander Andreev 2024-09-17 03:15:26 +04:00
parent 99aa85f271
commit ed19e81b29
Signed by: Arav
GPG Key ID: 25969B23DCB5CA34

View File

@ -14,7 +14,7 @@ templ Article(title, description, body, urlName string, date time.Time, r *http.
<div class="menu"> <div class="menu">
<a href="/stuff#articles">{ i18n.T(ctx, "article.go-back") }</a> <a href="/stuff#articles">{ i18n.T(ctx, "article.go-back") }</a>
{{ dctz := util.ToClientTimezone(date, r) }} {{ dctz := util.ToClientTimezone(date, r) }}
<time datetime={ dctz.Format("2006-01-02") }>{ dctz.Format("02 January 2006") }</time> <time datetime={ dctz.Format("2006-01-02") }>{ dctz.Format("02.01.2006") }</time>
</div> </div>
</header> </header>
@templ.Raw(body) @templ.Raw(body)