cobbler/cobbler — Issue #23: python Time Zone Error in Cobbler_web -- /usr/share/cobbler/web/settings.py incorrect default value?
Author: boblfoot
Created: 2011-12-11 05:39:31+00:00
State: open

I get this same wrong time zone result on Centos6, Fedora14, Fedora15 and Fedora16 when trying to access my cobbler_web server.

Mod_python error: "PythonHandler django.core.handlers.modpython"

Traceback (most recent call last):

File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line 299, in HandlerDispatch
result = object(req)

File "/usr/lib/python2.4/site-packages/django/core/handlers/modpython.py", line 212, in handler
return ModPythonHandler()(req)

File "/usr/lib/python2.4/site-packages/django/core/handlers/modpython.py", line 174, in __call__
self.load_middleware()

File "/usr/lib/python2.4/site-packages/django/core/handlers/base.py", line 39, in load_middleware
for middleware_path in settings.MIDDLEWARE_CLASSES:

File "/usr/lib/python2.4/site-packages/django/utils/functional.py", line 276, in __getattr__
self._setup()

File "/usr/lib/python2.4/site-packages/django/conf/__init__.py", line 42, in _setup
self._wrapped = Settings(settings_module)

File "/usr/lib/python2.4/site-packages/django/conf/__init__.py", line 125, in __init__
raise ValueError("Incorrect timezone setting: %s" % self.TIME_ZONE)

ValueError: Incorrect timezone setting: America/NewYork

It was working in October just fine. All machines are set for America/Kentucky/Louisville TZ as far as I can tell unless it's referring to a cobbler TZ setting and not the system wide ones. I've even tried changing the setting listed in /usr/share/cobbler/web/settings.py.

The only work around so far has been to copy the file /usr/share/zoneinfo/America/New_York to /usr/share/zoneinfo/America/NewYork.

Not sure where the incorrect NewYork tz entry is located. Ideas/Help appreciated.

Did find that you can change the entry in /usr/share/cobbler/web/settings.py from NewYork to New_York and recompile to work around also.