From 4a6afbfadc4c497b56af1086ccc99aba0048039c Mon Sep 17 00:00:00 2001 From: Conor Branagan Date: Fri, 11 Jan 2013 10:26:01 -0500 Subject: [PATCH] Fix check for daylight savings time in Windows Event Log check. --- checks.d/win32_event_log.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/checks.d/win32_event_log.py b/checks.d/win32_event_log.py index a5327ac57f..40ea6a767c 100644 --- a/checks.d/win32_event_log.py +++ b/checks.d/win32_event_log.py @@ -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