diff --git a/fail2ban/server/strptime.py b/fail2ban/server/strptime.py index dac2fef0..da04495f 100644 --- a/fail2ban/server/strptime.py +++ b/fail2ban/server/strptime.py @@ -27,7 +27,7 @@ from .mytime import MyTime locale_time = LocaleTime() timeRE = TimeRE() if 'z' not in timeRE: # python2.6 not present - timeRE['z'] = r"(?P[+-]\d{2}[-5]\d)" + timeRE['z'] = r"(?P[+-]\d{2}[0-5]\d)" def reGroupDictStrptime(found_dict): """This is tweaked from python built-in _strptime"""