Bug #383171 “Timezone lookups failing for some installations” : Bugs : pytz

2 min read Original article ↗

I have version 2009g installed on AIX. US/Eastern is not in the timezone information. America/New_York is not either. The strange thing is that I have the same version installed on Linux and they are there. I installed both from downloading the tgz from the pytz web site. The python version is different on the two systems. I would like to be able to find something that works the same on both systems. Either US/Eastern or America/New_York.

Here is the AIX information:

$ python
Python 2.6 (r26:66714, Oct 28 2008, 16:33:58) [C] on aix5
Type "help", "copyright", "credits" or "license" for more information.
>>> import pytz
>>> pytz.__version__
'2009g'
>>> 'US/Eastern' in pytz.common_timezones
False
>>> 'US/Eastern' in pytz.common_timezones_set
False
>>> 'US/Eastern' in pytz.all_timezones
False
>>> pytz.country_timezones('US')
['America/Kentucky/Louisville', 'America/Kentucky/Monticello', 'America/Indiana/Vincennes', 'America/Indiana/Winamac', 'America/Indiana/Marengo', 'America/Indiana/Petersburg', 'America/Indiana/Vevay', 'America/Indiana/Tell_City', 'America/Menominee', 'America/North_Dakota/Center', 'America/North_Dakota/New_Salem', 'America/Boise', 'America/Juneau', 'America/Yakutat', 'America/Nome']
>>> 'America/New_York' in pytz.all_timezones
False

Here is the Linux information:

brente@belmer:~$ python
Python 2.5.4 (r254:67916, Feb 17 2009, 20:16:45)
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pytz
>>> pytz.__version__
'2009g'
>>> 'US/Eastern' in pytz.common_timezones
True
>>> 'US/Eastern' in pytz.all_timezones
True
>>> pytz.country_timezones('US')
['America/New_York', 'America/Detroit', 'America/Kentucky/Louisville', 'America/Kentucky/Monticello', 'America/Indiana/Indianapolis', 'America/Indiana/Vincennes', 'America/Indiana/Winamac', 'America/Indiana/Marengo', 'America/Indiana/Petersburg', 'America/Indiana/Vevay', 'America/Chicago', 'America/Indiana/Tell_City', 'America/Indiana/Knox', 'America/Menominee', 'America/North_Dakota/Center', 'America/North_Dakota/New_Salem', 'America/Denver', 'America/Boise', 'America/Shiprock', 'America/Phoenix', 'America/Los_Angeles', 'America/Anchorage', 'America/Juneau', 'America/Yakutat', 'America/Nome', 'America/Adak', 'Pacific/Honolulu']
>>> 'America/New_York' in pytz.all_timezones
True