3728: Daterange with cformat doesn't XML-import

svn: r14865
This commit is contained in:
Doug Blank 2010-03-19 01:19:29 +00:00
parent 85cda5069b
commit 10a8de8f1f

View File

@ -1748,7 +1748,7 @@ class GrampsParser(UpdateCallback):
rng_day = 0 rng_day = 0
if "cformat" in attrs: if "cformat" in attrs:
cal = gen.lib.Date.calendar_names.index(attrs['calendar']) cal = gen.lib.Date.calendar_names.index(attrs['cformat'])
else: else:
cal = gen.lib.Date.CAL_GREGORIAN cal = gen.lib.Date.CAL_GREGORIAN