- Fixed timezone bug with epoch date template. Thanks to Michael Hanselmann

git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@618 a942ae1a-1317-0410-a47c-b1dcaea8d605
_tent/ipv6_via_aInfo
Cyril Jaquier 2007-09-05 20:43:47 +00:00
parent d885fc786e
commit 9eda9e93c7
2 changed files with 3 additions and 1 deletions

View File

@ -12,6 +12,8 @@ ver. 0.8.2 (2007/??/??) - stable
- Fixed named filter. Thanks to Yaroslav Halchenko
- Fixed wrong path for apache-auth in jail.conf. Thanks to
Vincent Deffontaines
- Fixed timezone bug with epoch date template. Thanks to
Michael Hanselmann
ver. 0.8.1 (2007/08/14) - stable
----------

View File

@ -40,5 +40,5 @@ class DateEpoch(DateTemplate):
dateMatch = self.matchDate(line)
if dateMatch:
# extract part of format which represents seconds since epoch
date = list(time.gmtime(float(dateMatch.group())))
date = list(time.localtime(float(dateMatch.group())))
return date