- Use timetuple instead of utctimetuple for ISO 8601. Maybe not a 100% correct fix but seems to work. Tracker #2500276.

git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@729 a942ae1a-1317-0410-a47c-b1dcaea8d605
_tent/ipv6_via_aInfo
Cyril Jaquier 2009-02-08 19:50:44 +00:00
parent abd061bad8
commit 3155bc8f03
2 changed files with 3 additions and 1 deletions

View File

@ -35,6 +35,8 @@ ver. 0.8.4 (2008/??/??) - stable
Debian bug #513953. Debian bug #513953.
- Changed <HOST> template to be more restrictive. Debian bug - Changed <HOST> template to be more restrictive. Debian bug
#514163. #514163.
- Use timetuple instead of utctimetuple for ISO 8601. Maybe
not a 100% correct fix but seems to work. Tracker #2500276.
ver. 0.8.3 (2008/07/17) - stable ver. 0.8.3 (2008/07/17) - stable
---------- ----------

View File

@ -187,5 +187,5 @@ class DateISO8601(DateTemplate):
if dateMatch: if dateMatch:
# Parses the date. # Parses the date.
value = dateMatch.group() value = dateMatch.group()
date = list(iso8601.parse_date(value).utctimetuple()) date = list(iso8601.parse_date(value).timetuple())
return date return date