- Fixed a bug in the previous... bug fix

git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_5@151 a942ae1a-1317-0410-a47c-b1dcaea8d605
0.5
Cyril Jaquier 2005-07-23 09:07:53 +00:00
parent 02386131e9
commit 891b8d9e8a
1 changed files with 1 additions and 1 deletions

View File

@ -191,7 +191,7 @@ class LogReader:
# Bug fix for #1241756
# If the date is greater than the current time, we suppose
# that the log is not from this year but from the year before
if date > time.time():
if time.mktime(date) > time.time():
date[0] -= 1
unixTime = time.mktime(date)
return unixTime