Fix GEDCOM import/export DATE/TIME creep by UTC offset. (#1089)

This commit is contained in:
Alan Crosswell 2020-08-21 10:38:06 -04:00 committed by GitHub
parent 95776f8e84
commit 261a3d8965
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1123,7 +1123,7 @@ class GedcomWriter(UpdateCallback):
+1 <<NOTE_STRUCTURE>> # not used
"""
self._writeln(level, 'CHAN')
time_val = time.gmtime(timeval)
time_val = time.localtime(timeval)
self._writeln(level + 1, 'DATE', '%d %s %d' % (
time_val[2], libgedcom.MONTH[time_val[1]], time_val[0]))
self._writeln(level + 2, 'TIME', '%02d:%02d:%02d' % (