From 433c80b41f7d644ba3c47a6a2e0bd00c64e1be1c Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Tue, 9 May 2023 23:54:26 +0400 Subject: [PATCH] Changed format for dates in guestbook template. --- web/templates/guestbook.pug | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/templates/guestbook.pug b/web/templates/guestbook.pug index cb82c81..a377c68 100755 --- a/web/templates/guestbook.pug +++ b/web/templates/guestbook.pug @@ -40,14 +40,14 @@ block content each entry in entries article header - - var created_tz = util.ToClientTimezone(entry.Created, r).Format("2006-01-02T15:04:05") - | Entry ##{entry.ID} by #[span.highlighted #{entry.Name}] #[em #{entry.Website}] on #[time(datetime=created_tz) #{created_tz}] + - var created_tz = util.ToClientTimezone(entry.Created, r).Format("Monday _2 January 2006 15:04:05 -07:00") + | ##{entry.ID} by #[span.highlighted #{entry.Name}] #[em #{entry.Website}] on #[time(datetime=created_tz) #{created_tz}] each line in strings.Split(entry.Message, "\n") +entryLine(line) if (entry.Reply != nil) .reply header - - var reply_created_tz = util.ToClientTimezone(entry.Reply.Created, r).Format("2006-01-02 15:04:05") + - var reply_created_tz = util.ToClientTimezone(entry.Reply.Created, r).Format("Monday _2 January 2006 15:04:05 -07:00") | Reply by #[span.highlighted #{owner}] on #[time(datetime=reply_created_tz) #{reply_created_tz}] each line in strings.Split(entry.Reply.Message, "\n") +entryLine(line)