From e6849bd417ab4e747b65c93d9c8e9921434a6dbc Mon Sep 17 00:00:00 2001 From: Tim G L Lyons Date: Tue, 21 Feb 2012 15:49:30 +0000 Subject: [PATCH] GEDCOM import: if a default source is created, attached date data for submitters was incorrectly stored as a Date object when it should be text. svn: r18946 --- src/plugins/lib/libgedcom.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/plugins/lib/libgedcom.py b/src/plugins/lib/libgedcom.py index 0559b5f77..857cd8883 100644 --- a/src/plugins/lib/libgedcom.py +++ b/src/plugins/lib/libgedcom.py @@ -6317,8 +6317,12 @@ class GedcomParser(UpdateCallback): @type state: CurrentState """ if self.use_def_src: + # Because there is a DATE tag, line.data is automatically converted + # to a Date object before getting to this point, so it has to be + # converted back to a string + text_date = str(line.data) self.def_src.set_data_item(_("Publication date of source data"), - line.data) + text_date) def __header_file(self, line, state): """