ticket 2244 Date parser for Norwegian locale, allow 'b' for month
svn: r10854
This commit is contained in:
parent
3b8297e861
commit
dda6988dfc
@ -197,8 +197,10 @@ class DateParser:
|
|||||||
fmt = GrampsLocale.tformat
|
fmt = GrampsLocale.tformat
|
||||||
match = self._fmt_parse.match(fmt.lower())
|
match = self._fmt_parse.match(fmt.lower())
|
||||||
if match:
|
if match:
|
||||||
self.dmy = (match.groups() == ('d', 'm', 'y'))
|
self.dmy = (match.groups() == ('d', 'm', 'y') or \
|
||||||
self.ymd = (match.groups() == ('y', 'm', 'd'))
|
match.groups() == ('d', 'b', 'y'))
|
||||||
|
self.ymd = (match.groups() == ('y', 'm', 'd') or \
|
||||||
|
match.groups() == ('y', 'b', 'd'))
|
||||||
else:
|
else:
|
||||||
self.dmy = True
|
self.dmy = True
|
||||||
self.ymd = False
|
self.ymd = False
|
||||||
|
Loading…
Reference in New Issue
Block a user