]> Sergey Matveev's repositories - sgblog.git/commitdiff
Be timezone neutral for posted comments
authorSergey Matveev <stargrave@stargrave.org>
Wed, 15 Jan 2020 07:59:16 +0000 (10:59 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Wed, 15 Jan 2020 07:59:16 +0000 (10:59 +0300)
cmd/sgblog-comment-add/main.go

index 25abe1bec1302d39d7b3904b6617ced8a3ab7c89..8bae15fdc1dda25f9a92c5f35b1505ebb1eb5d6f 100644 (file)
@@ -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"),
        )))