Fix problem reading old dates when language is non-english.
svn: r630
This commit is contained in:
parent
33fee50a45
commit
e308b7209e
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user