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])]
|
self.month = _m2num[string.lower(text[0:3])]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
self.setMonthStrEng(text)
|
self.setMonthStrEng(text)
|
||||||
raise Date.Error,text
|
|
||||||
|
|
||||||
def setMonthStrEng(self,text):
|
def setMonthStrEng(self,text):
|
||||||
try:
|
try:
|
||||||
self.month = SingleDate.em2num[string.lower(text[0:3])]
|
self.month = SingleDate.em2num[string.lower(text[0:3])]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
self.month = UNDEF
|
self.month = UNDEF
|
||||||
|
raise Date.Error,text
|
||||||
|
|
||||||
def getMonthStr(self):
|
def getMonthStr(self):
|
||||||
return _mname[self.month]
|
return _mname[self.month]
|
||||||
|
Loading…
Reference in New Issue
Block a user