summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasper Van der Jeugt <jaspervdj@gmail.com>2012-10-21 17:08:06 -0700
committerJasper Van der Jeugt <jaspervdj@gmail.com>2012-10-21 17:08:06 -0700
commit8d17f7dcff4f9452989c63d11659bbdc9625ced6 (patch)
treee70bf029262f76faa5b43a980a0ae14a151774c5
parentec257c670d5ce0d0248e70267f576d163e334f24 (diff)
parent09e75d3b3e65f7c64fa9ea02af54c890156b0baf (diff)
downloadhakyll-8d17f7dcff4f9452989c63d11659bbdc9625ced6.tar.gz
Merge pull request #90 from mloskot/yaml-date-fix
Allow parsing of relaxed ISO8601 date format in published metadata field
-rw-r--r--src/Hakyll/Web/Page/Metadata.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Hakyll/Web/Page/Metadata.hs b/src/Hakyll/Web/Page/Metadata.hs
index 8873afc..022912d 100644
--- a/src/Hakyll/Web/Page/Metadata.hs
+++ b/src/Hakyll/Web/Page/Metadata.hs
@@ -175,6 +175,7 @@ getUTCMaybe :: TimeLocale -- ^ Output time locale
getUTCMaybe locale page = msum
[ fromPublished "%a, %d %b %Y %H:%M:%S UT"
, fromPublished "%Y-%m-%dT%H:%M:%SZ"
+ , fromPublished "%Y-%m-%d %H:%M:%S"
, fromPublished "%B %e, %Y %l:%M %p"
, fromPublished "%B %e, %Y"
, getFieldMaybe "path" page >>= parseTime' "%Y-%m-%d" .