summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateusz Loskot <mateusz@loskot.net>2012-11-10 12:34:16 +0000
committerMateusz Loskot <mateusz@loskot.net>2012-11-10 12:34:16 +0000
commit0b7bfc72a1b5dafa2b63ca25ea0df9e22568455b (patch)
treee8630985d1daa3bab2a3981553d41269fd043066
parente5c97d978bf34bdc98d97bf42ee2be29a5af4242 (diff)
downloadhakyll-0b7bfc72a1b5dafa2b63ca25ea0df9e22568455b.tar.gz
Added %Y-%m-%d format to enable short date parsing in metadata.
-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 764022a..4528d78 100644
--- a/src/Hakyll/Web/Page/Metadata.hs
+++ b/src/Hakyll/Web/Page/Metadata.hs
@@ -186,6 +186,7 @@ getUTCMaybe locale page = msum $
[ "%a, %d %b %Y %H:%M:%S UT"
, "%Y-%m-%dT%H:%M:%SZ"
, "%Y-%m-%d %H:%M:%S"
+ , "%Y-%m-%d"
, "%B %e, %Y %l:%M %p"
, "%B %e, %Y"
]