Indianapolis timeZone not working with jdk1.5.0_06
Hi,
I am working on below environment:
Solaris 5.10: This has OS and timeZone patch updated for 2007 effects.
Jdk1.5.0_06
Indianapolis is *not* working on above setup. I checked the system and confirmed that below files are present:
/usr/share/lib/zoneinfo/America/Indiana/Indianapolis
/usr/share/lib/zoneinfo/America/Indianapolis
For jdk1.5.0_06, the file is found at below location:
jdk1.5.0_06/jre/lib/zi/America/Indiana/Indianapolis
It is observed that for jdks wherever the above file is present outside Indiana folder, the timeZone is working properly.
For Ex: it is working fine on jdk1.4.2_10, 1.5.0_04
For versions 1.4.2_11, 1.4.2_12, 1.5.0_06, it is not working because the file is inside Indiana folder.
I need to provide a reason why the file is placed under different locations for above versions? Is there a specific reason to do this switch? Is there a known workaround to make Indianapolis work on all jdk versions? I searched on entire Sun site but didn't get any solution.
I would really appreciate if you provide a solution or clarification for above as it has become a critical issue for the customers.
Thanks a lot,
Appreciate any kind of help/input here.
[1275 byte] By [
suruguptaa] at [2007-11-26 20:34:09]

# 1
> Indianapolis is *not* working on above setup. I
> checked the system and confirmed that below files are
> present:
Can you please be more specific about the problem? What do you mean by "not working"? If possible, can you please file a bug report with more detailed information?
> I need to provide a reason why the file is placed
> under different locations for above versions? Is
> there a specific reason to do this switch? Is there a
> known workaround to make Indianapolis work on all jdk
> versions? I searched on entire Sun site but didn't
> get any solution.
Java uses the public timezone database (a.k.a. Olson public source). A long ago America/Indiana/ was created to deal with per county time zones. Currently, the following time zones are defined (as of tzdata2007c).
America/Indiana/Indianapolis
America/Indiana/Marengo
America/Indiana/Vincennes
America/Indiana/Petersburg
America/Indiana/Knox
America/Indiana/Winamac
America/Indiana/Vevay
Thanks,
Masayoshi
# 2
Thanks for your reply.
By *not working* I meant, when I select my timeZone as Indianapolis, it takes the system date/time instead of zone specific date/time. There is no error message seen anywhere. Only the right date/time is not getting displayed.
For JDK versions, 1.4.2_10 and 1.5.0_04, since the file indianapolis is placed outside Indiana folder, zone specific date/time is getting displayed properly and Not the system date
# 3
Hi,
I'm using jdk1.5.0_06 on Solaris 10 (x86) but don't know what's wrong with it. Could you please show us a simple test program and its expected & actual results so that we can clearly understand your problem?
Although jdk1.5.0_06 doesn't have a file "jre/lib/zi/America/Indianapolis", the timezone "America/Indianapolis" should still work as well as "America/Indiana/Indianapolis" because jdk has internal mapping info between them.
As you may know, these timezones now use daylight saving. In Java, it was supported in jdk1.5.0_06. TimeZone data in jdk1.4.2_10 and 1.5.0_04 are incorrect now.
Thanks,