From ac30379672bcc27befed1da1cc130162e2bf0e81 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Wed, 15 Jan 2020 10:59:16 +0300 Subject: [PATCH] Be timezone neutral for posted comments --- cmd/sgblog-comment-add/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/sgblog-comment-add/main.go b/cmd/sgblog-comment-add/main.go index 25abe1b..8bae15f 100644 --- a/cmd/sgblog-comment-add/main.go +++ b/cmd/sgblog-comment-add/main.go @@ -111,7 +111,7 @@ func main() { w.WriteChunk([]byte(fmt.Sprintf( "From: %s\nDate: %s\n\n%s", from, - time.Now().Format(WhenFmt), + time.Now().UTC().Format(WhenFmt), strings.Join(lines, "\n"), ))) -- 2.44.0