Fix problem reading old dates when language is non-english.

svn: r630
This commit is contained in:
David Hampton 2001-12-18 00:49:05 +00:00
parent 9758e5d16a
commit dd0a85bf9f

View File

@ -455,13 +455,13 @@ class SingleDate:
self.month = _m2num[string.lower(text[0:3])]
except KeyError:
self.setMonthStrEng(text)
raise Date.Error,text
def setMonthStrEng(self,text):
try:
self.month = SingleDate.em2num[string.lower(text[0:3])]
except KeyError:
self.month = UNDEF
raise Date.Error,text
def getMonthStr(self):
return _mname[self.month]