1
0

Fixed date format in mindflow.

This commit is contained in:
Alexander Andreev 2024-09-15 15:52:54 +04:00
parent f366892b59
commit 94482d0aae
Signed by: Arav
GPG Key ID: 25969B23DCB5CA34

View File

@ -39,7 +39,7 @@ templ Mindflow(posts []mindflow.Post, categories []mindflow.Category, r *http.Re
<span></span>
}
{{ ctz := util.ToClientTimezone(post.Date, r) }}
<time datetime={ ctz.Format(time.RFC3339) }>{ ctz.Format("01.02.2006 15:04:05 -07:00") }</time>
<time datetime={ ctz.Format(time.RFC3339) }>{ ctz.Format("02.01.2006 15:04:05 -07:00") }</time>
</footer>
</article>
}