aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2012-02-05 14:05:30 -0800
committerJohn MacFarlane <fiddlosopher@gmail.com>2012-02-05 14:05:30 -0800
commiteed87d77553864066bcb545645df8e999d64fbeb (patch)
tree786ccf870deac19577181d4bf75bcc752355d0c9 /src/Text/Pandoc
parent6cb7c688d8480d94ba4c1c85a1506e963a268d9e (diff)
downloadpandoc-eed87d77553864066bcb545645df8e999d64fbeb.tar.gz
Normalize date in EPUB metadata.
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r--src/Text/Pandoc/Writers/EPUB.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Writers/EPUB.hs b/src/Text/Pandoc/Writers/EPUB.hs
index 1242b948f..67048348e 100644
--- a/src/Text/Pandoc/Writers/EPUB.hs
+++ b/src/Text/Pandoc/Writers/EPUB.hs
@@ -152,7 +152,7 @@ writeEPUB mbStylesheet fonts opts doc@(Pandoc meta _) = do
Pandoc meta [Plain t]
let plainTitle = plainify $ docTitle meta
let plainAuthors = map plainify $ docAuthors meta
- let plainDate = plainify $ docDate meta
+ let plainDate = maybe "" id $ normalizeDate $ stringify $ docDate meta
let contentsData = fromString $ ppTopElement $
unode "package" ! [("version","2.0")
,("xmlns","http://www.idpf.org/2007/opf")