summaryrefslogtreecommitdiff
path: root/lib/Hakyll/Web
diff options
context:
space:
mode:
authorJasper Van der Jeugt <m@jaspervdj.be>2020-02-26 14:28:03 +0100
committerJasper Van der Jeugt <m@jaspervdj.be>2020-02-26 14:28:16 +0100
commit1cb23e092b3c9dc2bcfe435254223ee43e10452e (patch)
tree83233e80ce41cffcee4c5d7e6f21ea547465b754 /lib/Hakyll/Web
parentf953b54c5534f511e0a42cd9a5243759a7dc9c6a (diff)
downloadhakyll-1cb23e092b3c9dc2bcfe435254223ee43e10452e.tar.gz
Fix timezone parsing with time-1.9
Diffstat (limited to 'lib/Hakyll/Web')
-rw-r--r--lib/Hakyll/Web/Template/Context.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Hakyll/Web/Template/Context.hs b/lib/Hakyll/Web/Template/Context.hs
index a5049c2..c1a4f23 100644
--- a/lib/Hakyll/Web/Template/Context.hs
+++ b/lib/Hakyll/Web/Template/Context.hs
@@ -385,8 +385,11 @@ getItemUTC locale id' = do
parseTime' = parseTimeM True locale
formats =
[ "%a, %d %b %Y %H:%M:%S %Z"
+ , "%a, %d %b %Y %H:%M:%S"
, "%Y-%m-%dT%H:%M:%S%Z"
+ , "%Y-%m-%dT%H:%M:%S"
, "%Y-%m-%d %H:%M:%S%Z"
+ , "%Y-%m-%d %H:%M:%S"
, "%Y-%m-%d"
, "%B %e, %Y %l:%M %p"
, "%B %e, %Y"