Do not convert mindflow's post date to client's TZ twice.
This commit is contained in:
parent
eceb06aa57
commit
20cf45bfeb
@ -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>
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user