Backed out changeset 04ea443fd358
issue4676
This commit is contained in:
1 parent
e3072c4794
commit
651f4eb622
1 file changed
+1
-5
@@ -23,11 +23,7 @@ _ = gettext.gettext
|
||||
def date_parse(text, format_='%x'):
|
||||
dayfirst = datetime.date(1988, 8, 16).strftime(format_).index('16') == 0
|
||||
yearfirst = datetime.date(1988, 8, 16).strftime(format_).index('88') <= 2
|
||||
try:
|
||||
return parse(text, dayfirst=dayfirst, yearfirst=yearfirst,
|
||||
ignoretz=True)
|
||||
except ValueError:
|
||||
return None
|
||||
return parse(text, dayfirst=dayfirst, yearfirst=yearfirst, ignoretz=True)
|
||||
|
||||
|
||||
class Date(gtk.Entry):
|
||||
|
||||
Reference in new issue
Block a user