From: Sergey Matveev Date: Wed, 15 Jan 2020 07:59:16 +0000 (+0300) Subject: Be timezone neutral for posted comments X-Git-Tag: v0.2.0~1 X-Git-Url: http://www.git.stargrave.org/?p=sgblog.git;a=commitdiff_plain;h=ac30379672bcc27befed1da1cc130162e2bf0e81 Be timezone neutral for posted comments --- 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"), )))