From 45d1a71229310c5c68e55bb1a099ecaf3829ea31 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Sun, 15 Sep 2024 15:09:55 +0400 Subject: [PATCH] Change timedate format in a guestbook. --- web/guestbook.templ | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/guestbook.templ b/web/guestbook.templ index ffb5346..0067891 100644 --- a/web/guestbook.templ +++ b/web/guestbook.templ @@ -36,7 +36,7 @@ templ Guestbook(captchaID, owner string, entries []*justguestbook.Entry, pageCou for _, entry := range entries {
- {{ created_tz := util.ToClientTimezone(entry.Created, r).Format("Monday _2 January 2006 15:04:05 -07:00") }} + {{ created_tz := util.ToClientTimezone(entry.Created, r).Format("02.01.2006 15:04:05 -07:00") }} {{ website := "" }} if !entry.HideWebsite { {{ website = entry.Website }} @@ -52,7 +52,7 @@ templ Guestbook(captchaID, owner string, entries []*justguestbook.Entry, pageCou if entry.Reply != nil {
- {{ reply_created_tz := util.ToClientTimezone(entry.Reply.Created, r).Format("Monday _2 January 2006 15:04:05 -07:00") }} + {{ reply_created_tz := util.ToClientTimezone(entry.Reply.Created, r).Format("02.01.2006 15:04:05 -07:00") }} { i18n.T(ctx, "guestbook.post.reply") } { owner } { i18n.T(ctx, "guestbook.post.on") }
for _, line := range strings.Split(entry.Reply.Message, "\n") {