Fix GEDCOM import/export DATE/TIME creep by UTC offset. (#1089)
This commit is contained in:
parent
95776f8e84
commit
261a3d8965
@ -1123,7 +1123,7 @@ class GedcomWriter(UpdateCallback):
|
|||||||
+1 <<NOTE_STRUCTURE>> # not used
|
+1 <<NOTE_STRUCTURE>> # not used
|
||||||
"""
|
"""
|
||||||
self._writeln(level, 'CHAN')
|
self._writeln(level, 'CHAN')
|
||||||
time_val = time.gmtime(timeval)
|
time_val = time.localtime(timeval)
|
||||||
self._writeln(level + 1, 'DATE', '%d %s %d' % (
|
self._writeln(level + 1, 'DATE', '%d %s %d' % (
|
||||||
time_val[2], libgedcom.MONTH[time_val[1]], time_val[0]))
|
time_val[2], libgedcom.MONTH[time_val[1]], time_val[0]))
|
||||||
self._writeln(level + 2, 'TIME', '%02d:%02d:%02d' % (
|
self._writeln(level + 2, 'TIME', '%02d:%02d:%02d' % (
|
||||||
|
Loading…
Reference in New Issue
Block a user