8477: date format month/year is not well reported at editing time

This commit is contained in:
Paul Franklin 2015-04-09 22:05:36 -07:00
parent cb5fb2ed27
commit 7ef450515c

View File

@ -629,8 +629,12 @@ class DateParser(object):
else:
y = self._get_int(groups[4])
if self.dmy:
m = self._get_int(groups[3])
d = self._get_int(groups[1])
if groups[3] is None:
m = self._get_int(groups[1])
d = 0
else:
m = self._get_int(groups[3])
d = self._get_int(groups[1])
else:
m = self._get_int(groups[1])
d = self._get_int(groups[3])