aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFélix Sipma <felix.sipma@no-log.org>2018-12-12 20:44:56 +0100
committerFélix Sipma <felix.sipma@no-log.org>2018-12-12 20:44:56 +0100
commit73e3108ec8cdd69e3fc8e3f03d221720646d0488 (patch)
tree56803f990b00dc9663a29d06c1a66f8ffe4af41e
parent5bea27575ab56bd9130c9b0a3503e9f8ebd592b2 (diff)
Date: parse broken dates "2017-10-17"
-rw-r--r--src/Date.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Date.hs b/src/Date.hs
index 9a8a465..24c4dc6 100644
--- a/src/Date.hs
+++ b/src/Date.hs
@@ -37,6 +37,8 @@ parseW3' t =
-- ^ 2017-10-17 00:00:00 +0000
<|> parseTimeM True defaultTimeLocale "%F %X %Z" s
-- ^ 2017-10-17 00:00:00 UTC
+ <|> parseTimeM True defaultTimeLocale "%F" s
+ -- ^ 2017-10-17
where
s = toS t