Fixed year handling

svn: r595
This commit is contained in:
Don Allingham 2001-11-29 21:07:56 +00:00
parent f297268824
commit 68465ccd5e

View File

@ -896,7 +896,11 @@ class SingleDate:
self.day = int(string.replace(val,',',''))
else:
self.day = UNDEF
self.setYearVal(matches[3])
val = matches[3]
if val:
self.setYearVal(matches[3])
else:
self.setYearVal(UNDEF)
return 1
match = SingleDate.fmt4.match(text)