Changed article's date format.
This commit is contained in:
parent
99aa85f271
commit
ed19e81b29
@ -14,7 +14,7 @@ templ Article(title, description, body, urlName string, date time.Time, r *http.
|
||||
<div class="menu">
|
||||
<a href="/stuff#articles">{ i18n.T(ctx, "article.go-back") }</a>
|
||||
{{ 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>
|
||||
</header>
|
||||
@templ.Raw(body)
|
||||
|
Loading…
Reference in New Issue
Block a user