Support ISO8601 date/time format without timezones - hugo - [fork] hugo port for 9front
(HTM) git clone git@git.drkhsh.at/hugo.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Submodules
(DIR) README
(DIR) LICENSE
---
(DIR) commit e4af4f652e145adac7d69f8a2524a45bd3e000f6
(DIR) parent 0bfe9276c2d6041e2835d5c20320b8acb36ef692
(HTM) Author: Ask Bjørn Hansen <ask@develooper.com>
Date: Sun, 16 Feb 2014 01:22:11 -0800
Support ISO8601 date/time format without timezones
Diffstat:
M hugolib/metadata.go | 1 +
1 file changed, 1 insertion(+), 0 deletions(-)
---
(DIR) diff --git a/hugolib/metadata.go b/hugolib/metadata.go
@@ -38,6 +38,7 @@ func interfaceToStringToDate(i interface{}) time.Time {
func stringToDate(s string) (time.Time, error) {
return parseDateWith(s, []string{
time.RFC3339,
+ "2006-01-02T15:04:05", // iso8601 without timezone
time.RFC1123Z,
time.RFC1123,
time.RFC822Z,