shithub: hugo

Download patch

ref: 3a8c12418a97230df714488e522f44ce8af685c5
parent: be3d563a13eae2c4801fec5e9537b4f246ee48c7
author: bep <[email protected]>
date: Tue Dec 9 06:42:07 EST 2014

Add timezone to buildDate

--- a/commands/version.go
+++ b/commands/version.go
@@ -74,6 +74,6 @@
 // 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)
 }