diff --git a/src/plugins/export/ExportGedcom.py b/src/plugins/export/ExportGedcom.py index 472e98c90..08ef45ca8 100644 --- a/src/plugins/export/ExportGedcom.py +++ b/src/plugins/export/ExportGedcom.py @@ -1103,6 +1103,14 @@ class GedcomWriter(UpdateCallback): self.__date(2, dateobj) place = None + times = [ attr.get_value() for attr in event.get_attribute_list() + if int(attr.get_type()) == gen.lib.AttributeType.TIME ] + + # Not legal, but inserted by PhpGedView + if len(times) > 0 and dateobj: + time = times[0] + self.__writeln(3, 'TIME', time) + if event.get_place_handle(): place = self.dbase.get_place_from_handle(event.get_place_handle()) self.__place(place, 2) diff --git a/src/plugins/lib/libgedcom.py b/src/plugins/lib/libgedcom.py index 8032e63db..faaaab497 100644 --- a/src/plugins/lib/libgedcom.py +++ b/src/plugins/lib/libgedcom.py @@ -1920,8 +1920,9 @@ class GedcomParser(UpdateCallback): TOKEN__GODP : self.__event_witness, TOKEN__WITN : self.__event_witness, TOKEN__WTN : self.__event_witness, - TOKEN_RELI : self.__ignore, - TOKEN_TIME : self.__ignore, + TOKEN_RELI : self.__ignore, + # Not legal, but inserted by PhpGedView + TOKEN_TIME : self.__event_time, TOKEN__TIME : self.__event_time, TOKEN_ASSO : self.__ignore, TOKEN_IGNORE : self.__ignore,