Fix handling on non-gregorian dates

svn: r4495
This commit is contained in:
Don Allingham 2005-05-06 17:13:12 +00:00
parent 48be6c8a75
commit 185bad6307

View File

@ -1051,7 +1051,6 @@ class GrampsParser:
bc = -1
val = val[1:]
start = val.split('-')
try:
y = int(start[0])*bc
except:
@ -1068,7 +1067,7 @@ class GrampsParser:
d = 0
if attrs.has_key("cformat"):
cal = Date.Date.calendar_names.index(attrs['calendar'])
cal = Date.Date.calendar_names.index(attrs['cformat'])
else:
cal = Date.CAL_GREGORIAN