From 5812050104224b115da0566d9050697b7cd615fe Mon Sep 17 00:00:00 2001 From: David Rose Date: Thu, 3 Apr 2003 19:18:50 +0000 Subject: [PATCH] correct timezone adjustment --- direct/src/directnotify/Notifier.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/direct/src/directnotify/Notifier.py b/direct/src/directnotify/Notifier.py index 466dd8fb89..0c930aa896 100644 --- a/direct/src/directnotify/Notifier.py +++ b/direct/src/directnotify/Notifier.py @@ -2,6 +2,7 @@ for the programmer/user""" from LoggerGlobal import * +import PythonUtil import time class Notifier: @@ -34,7 +35,7 @@ class Notifier: of day, and also switches into the server's timezone. """ delta = int(round(delta)) - Notifier.serverDelta = delta + timezone - time.timezone + Notifier.serverDelta = delta + time.timezone - timezone import NotifyCategory # Temporary try .. except for old Panda. @@ -43,7 +44,7 @@ class Notifier: except: pass - self.info("Notify clock adjusted by %s seconds (and timezone adjusted by %s hours) to synchronize with server." % (delta, (timezone - time.timezone) / 3600)) + self.info("Notify clock adjusted by %s (and timezone adjusted by %s hours) to synchronize with server." % (PythonUtil.formatElapsedSeconds(delta), (time.timezone - timezone) / 3600)) def getTime(self): """