1
0

Do not convert mindflow's post date to client's TZ twice.

This commit is contained in:
Alexander Andreev 2024-07-02 17:28:38 +04:00
parent eceb06aa57
commit 20cf45bfeb
Signed by: Arav
GPG Key ID: 25969B23DCB5CA34

View File

@ -36,7 +36,8 @@ templ Mindflow(posts []mindflow.Post, categories []mindflow.Category, r *http.Re
} else {
<span></span>
}
<time datetime={ util.ToClientTimezone(post.Date, r).Format(time.RFC3339) }>{ util.ToClientTimezone(post.Date, r).Format(time.RFC1123) }</time>
{{ ctz := util.ToClientTimezone(post.Date, r) }}
<time datetime={ ctz.Format(time.RFC3339) }>{ ctz.Format(time.RFC1123) }</time>
</footer>
</article>
}