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()