From: bep Date: Tue, 9 Dec 2014 10:42:07 +0000 (+0100) Subject: Add timezone to buildDate X-Git-Tag: v0.13~262 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=3a8c12418a97230df714488e522f44ce8af685c5;p=brevno-suite%2Fhugo Add timezone to buildDate --- diff --git a/commands/version.go b/commands/version.go index 0fdffba1..360aef24 100644 --- a/commands/version.go +++ b/commands/version.go @@ -74,6 +74,6 @@ func setBuildDate() { // formatBuildDate formats the buildDate according to the value in // .Params.DateFormat, if it's set. func formatBuildDate() { - t, _ := time.Parse("2006-01-02T15:04:05", buildDate) + t, _ := time.Parse("2006-01-02T15:04:05-0700", buildDate) buildDate = t.Format(time.RFC3339) }