Backed out changeset 04ea443fd358

issue4676
This commit is contained in:
Nicolas Évrard committed 2015-04-02 12:44:19 +02:00
1 parent e3072c4794
commit 651f4eb622
1 file changed
+1 -5
+1 -5
View File
@@ -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):