From a88ef6fad08561ca72141e771bf17ff31885d320 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Rapinat?= Date: Fri, 12 Nov 2010 15:26:41 +0000 Subject: [PATCH] 4345: TIME on eventdate svn: r16187 --- src/plugins/export/ExportGedcom.py | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/src/plugins/export/ExportGedcom.py b/src/plugins/export/ExportGedcom.py index 150542794..e3fb77109 100644 --- a/src/plugins/export/ExportGedcom.py +++ b/src/plugins/export/ExportGedcom.py @@ -1102,19 +1102,16 @@ class GedcomWriter(UpdateCallback): dateobj = event.get_date_object() self.__date(2, dateobj) if self.__datewritten: - #write out TIME if present - pass + # write out TIME if present + 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: + time = times[0] + self.__writeln(3, 'TIME', time) 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 self.__datewritten: - 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)