Fix problem reading old dates when language is non-english.
svn: r630
This commit is contained in:
parent
9758e5d16a
commit
dd0a85bf9f
@ -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