mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
Add timezone to buildDate
This commit is contained in:
parent
be3d563a13
commit
3a8c12418a
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue