Skip to content

Commit

Permalink
Fix check for daylight savings time in Windows Event Log check.
Browse files Browse the repository at this point in the history
  • Loading branch information
conorbranagan committed Jan 11, 2013
1 parent f002981 commit 4a6afbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion checks.d/win32_event_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def _get_tz_offset(self):
''' Return the timezone offset for the current local time
'''
if time.daylight == 0:
offest = time.timezone
offest = time.localtime().tm_isdst
else:
offset = time.altzone
return offset / 60 / 60 * -1
Expand Down

0 comments on commit 4a6afbf

Please sign in to comment.