mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
- 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
This commit is contained in:
parent
d8ca00765f
commit
9d3f03d3fe
2 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
----------
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue