remove inappropriate hack

This commit is contained in:
David Rose 2006-02-22 21:21:59 +00:00
parent 62aa19e606
commit 8c88c3cf97

View File

@ -49,11 +49,11 @@ class Notifier:
delta = int(round(delta))
Notifier.serverDelta = delta + time.timezone - timezone
# The following call is necessary to make the output from C++
# notify messages show the same timestamp as those generated
# from Python-level notify messages.
from pandac.PandaModules import NotifyCategory
# HACK - JAY, crashes when try to log into someone else's server
# NotifyCategory.setServerDelta(self.serverDelta)
NotifyCategory.setServerDelta(0)
NotifyCategory.setServerDelta(self.serverDelta)
self.info("Notify clock adjusted by %s (and timezone adjusted by %s hours) to synchronize with server." % (PythonUtil.formatElapsedSeconds(delta), (time.timezone - timezone) / 3600))