aboutsummaryrefslogtreecommitdiff
path: root/src/Text
diff options
context:
space:
mode:
authorMauro Bieg <mb21@users.noreply.github.com>2017-11-28 19:15:35 +0100
committerJohn MacFarlane <jgm@berkeley.edu>2017-11-28 11:15:35 -0700
commit393ce6f1e3f9ac2b5ab5cee44560332ce9902ae1 (patch)
treec883efafeebc98be5e27a64c9c435699460ef852 /src/Text
parent073bcae16cc9a2f33dac58abaeaeca6548f0807a (diff)
downloadpandoc-393ce6f1e3f9ac2b5ab5cee44560332ce9902ae1.tar.gz
make normalizeDate more forgiving (#4101)
also parse two-digit days, e.g. "April 20, 2017"
Diffstat (limited to 'src/Text')
-rw-r--r--src/Text/Pandoc/Shared.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Shared.hs b/src/Text/Pandoc/Shared.hs
index e0ea8b5e7..5c13e0acb 100644
--- a/src/Text/Pandoc/Shared.hs
+++ b/src/Text/Pandoc/Shared.hs
@@ -291,7 +291,7 @@ normalizeDate s = fmap (formatTime defaultTimeLocale "%F")
parseTime defaultTimeLocale
#endif
formats = ["%x","%m/%d/%Y", "%D","%F", "%d %b %Y",
- "%d %B %Y", "%b. %d, %Y", "%B %d, %Y",
+ "%e %B %Y", "%b. %e, %Y", "%B %e, %Y",
"%Y%m%d", "%Y%m", "%Y"]
--