Hi all
  I have a problem with pytz.

In my local system i tried with pytz and its working fine

>>> from pytz.tzfile import build_tzinfo
>>> import os.path
>>> base = os.path.join(os.getcwd(), 'external_apps/pytz/zoneinfo')
>>> tz = build_tzinfo('US/Eastern', open(os.path.join(base, 'US', 'Eastern'), 
>>> 'rb'))
>>> tz
<DstTzInfo 'US/Eastern' EST-1 day, 19:00:00 STD>

Its works fine
But when i tried with my hosting server build_tzinfo() raises an
IndexError

>>> tz = build_tzinfo('US/Eastern', open(os.path.join(base, 'US', 'Eastern'), 
>>> 'rb'))
Traceback (most recent call last):
  File "<console>", line 1, in ?
  File "/home/infocean/webapps/site/yoke/external_apps/pytz/
tzfile.py", line 65, in build_tzinfo
    # Early dates use the first standard time ttinfo
IndexError: list index out of range

What's wrong with the hosting server? Does it need any additional
packages?

Satheesh


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to