From 5c7f6751afd123e4981ba7c67f31151892872b4a Mon Sep 17 00:00:00 2001 From: Peter Landgren Date: Sat, 3 Sep 2011 11:26:15 +0000 Subject: [PATCH] Fix of first issue in 5194. svn: r18105 --- src/gen/plug/report/endnotes.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gen/plug/report/endnotes.py b/src/gen/plug/report/endnotes.py index c1c6031a4..c806c0bd0 100644 --- a/src/gen/plug/report/endnotes.py +++ b/src/gen/plug/report/endnotes.py @@ -29,6 +29,7 @@ from gen.plug.docgen import FontStyle, ParagraphStyle, FONT_SANS_SERIF from gen.lib import NoteType, SourceRef from gen.ggettext import gettext as _ from Utils import confidence +from DateHandler import displayer def add_endnote_styles(style_sheet): """ @@ -178,9 +179,9 @@ def _format_ref_text(ref, key): datepresent = True if datepresent: if ref.get_page(): - ref_txt = "%s - %s" % (ref.get_page(), str(date)) + ref_txt = "%s - %s" % (ref.get_page(), displayer.display(date)) else: - ref_txt = str(date) + ref_txt = displayer.display(date) else: ref_txt = ref.get_page()