Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbep <bjorn.erik.pedersen@gmail.com>2014-12-09 13:42:07 +0300
committerbep <bjorn.erik.pedersen@gmail.com>2014-12-09 13:42:07 +0300
commit3a8c12418a97230df714488e522f44ce8af685c5 (patch)
tree78579fe0a1224572112079004c958708fab686e9 /commands/version.go
parentbe3d563a13eae2c4801fec5e9537b4f246ee48c7 (diff)
Add timezone to buildDate
Diffstat (limited to 'commands/version.go')
-rw-r--r--commands/version.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/version.go b/commands/version.go
index 0fdffba14..360aef247 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)
}