diff options
author | Shaun Attfield <heurist+git@gmail.com> | 2013-12-01 10:19:08 +0200 |
---|---|---|
committer | Shaun Attfield <heurist+git@gmail.com> | 2013-12-01 10:19:08 +0200 |
commit | 82813b55852c99c2e4d179083c119937c39d5398 (patch) | |
tree | dc8567a6d118d4f198a9fe7dd71a7fe635853dcc /src/Text/Pandoc | |
parent | 2461f244e34022e6eb23cc0261b1692e53afc987 (diff) | |
download | pandoc-82813b55852c99c2e4d179083c119937c39d5398.tar.gz |
normalizeDate: Allow dates with year only (%Y)
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r-- | src/Text/Pandoc/Shared.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Shared.hs b/src/Text/Pandoc/Shared.hs index 8dcd88148..7592b7659 100644 --- a/src/Text/Pandoc/Shared.hs +++ b/src/Text/Pandoc/Shared.hs @@ -270,7 +270,7 @@ normalizeDate s = fmap (formatTime defaultTimeLocale "%F") (msum $ map (\fs -> parsetimeWith fs s) formats :: Maybe Day) where parsetimeWith = parseTime defaultTimeLocale formats = ["%x","%m/%d/%Y", "%D","%F", "%d %b %Y", - "%d %B %Y", "%b. %d, %Y", "%B %d, %Y"] + "%d %B %Y", "%b. %d, %Y", "%B %d, %Y", "%Y"] -- -- Pandoc block and inline list processing |