projects
/
brevno-suite
/
hugo
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0bfe927
)
Support ISO8601 date/time format without timezones
author
Ask Bjørn Hansen
<ask@develooper.com>
Sun, 16 Feb 2014 09:22:11 +0000
(
01:22
-0800)
committer
spf13
<steve.francia@gmail.com>
Tue, 18 Feb 2014 23:44:40 +0000
(18:44 -0500)
hugolib/metadata.go
patch
|
blob
|
history
diff --git
a/hugolib/metadata.go
b/hugolib/metadata.go
index 323acdbc53b1f1e1bc03353e4a77df2a10c06ada..dcef03c9ca40d4f94bda2bceebff892a220d65f4 100644
(file)
--- 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,