* src/DateParser.py: fix dates of the format of JAN 2000
svn: r3659
This commit is contained in:
parent
9cd7247c0b
commit
ce0ffc7035
@ -44,7 +44,6 @@ import locale
|
|||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
import Date
|
import Date
|
||||||
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
# Parser class
|
# Parser class
|
||||||
@ -298,12 +297,12 @@ class DateParser:
|
|||||||
else:
|
else:
|
||||||
m = mmap[groups[0].lower()]
|
m = mmap[groups[0].lower()]
|
||||||
|
|
||||||
d = self._get_int(groups[1])
|
|
||||||
|
|
||||||
if groups[2] == None:
|
if groups[2] == None:
|
||||||
y = 0
|
y = self._get_int(groups[1])
|
||||||
|
d = 0
|
||||||
s = None
|
s = None
|
||||||
else:
|
else:
|
||||||
|
d = self._get_int(groups[1])
|
||||||
y = int(groups[3])
|
y = int(groups[3])
|
||||||
s = groups[4] != None
|
s = groups[4] != None
|
||||||
return (d,m,y,s)
|
return (d,m,y,s)
|
||||||
|
Loading…
Reference in New Issue
Block a user