summaryrefslogtreecommitdiff
path: root/src/Hakyll/Web
diff options
context:
space:
mode:
authorJasper Van der Jeugt <jaspervdj@gmail.com>2012-11-10 04:39:15 -0800
committerJasper Van der Jeugt <jaspervdj@gmail.com>2012-11-10 04:39:15 -0800
commit2513e8eff65e64bd102647e0eb7eca5f4b1a3acf (patch)
treee8630985d1daa3bab2a3981553d41269fd043066 /src/Hakyll/Web
parente5c97d978bf34bdc98d97bf42ee2be29a5af4242 (diff)
parent0b7bfc72a1b5dafa2b63ca25ea0df9e22568455b (diff)
downloadhakyll-2513e8eff65e64bd102647e0eb7eca5f4b1a3acf.tar.gz
Merge pull request #93 from mloskot/short-date-fix
Added %Y-%m-%d format to enable short date parsing in metadata
Diffstat (limited to 'src/Hakyll/Web')
-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"
]