Browse files

fixed time.mktime on gen_unix_ts

  • Loading branch information...
1 parent 00165e0 commit 49f7e0fa6c0991f48b4c23bfd0962c348a0a163f @jvehent committed Nov 16, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 postscreen_stats.py
View
2 postscreen_stats.py
@@ -41,7 +41,7 @@ def gen_unix_ts(syslog_date):
# add the year
syslog_date = str(YEAR) + " " + syslog_date
ts = time.strptime(syslog_date, '%Y %b %d %H:%M:%S')
- unix_ts = calendar.timegm(ts)
+ unix_ts = time.mktime(ts)
# check if the unix_ts is not in the future
if unix_ts > time.mktime(NOW.timetuple()):

0 comments on commit 49f7e0f

Please sign in to comment.