git.iko.soy/typeable/pandoc
on master help sign in
Merge pull request #1074 from heurist/normalizeDateYearOnly

normalizeDate: Allow dates with year only (%Y)

commitc3ac04f74fcbf960e34e8c00bab66f4d574dad71 authorJohn MacFarlane <jgm@berkeley.edu> dateSun 1 Dec 2013, 08:27 (13 years ago) parent2461f2482813b5
1 file changed+1−1
src/Text/Pandoc/Shared.hs+1−1
src/Text/Pandoc/Shared.hs+1−1
@@ -270,7 +270,7 @@ normalizeDate s = fmap (formatTime defaultTimeLocale "%F")
270270 (msum $ map (\fs -> parsetimeWith fs s) formats :: Maybe Day)
271271 where parsetimeWith = parseTime defaultTimeLocale
272272 formats = ["%x","%m/%d/%Y", "%D","%F", "%d %b %Y",
273− "%d %B %Y", "%b. %d, %Y", "%B %d, %Y"]
273+ "%d %B %Y", "%b. %d, %Y", "%B %d, %Y", "%Y"]
274274
275275--
276276-- Pandoc block and inline list processing