From 1cb23e092b3c9dc2bcfe435254223ee43e10452e Mon Sep 17 00:00:00 2001 From: Jasper Van der Jeugt Date: Wed, 26 Feb 2020 14:28:03 +0100 Subject: Fix timezone parsing with time-1.9 --- lib/Hakyll/Web/Template/Context.hs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib') 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" -- cgit v1.2.3