← Back to team overview

openjdk team mailing list archive

[Bug 463943] Re: java does not handle timezones correctly

 

there is no code that interprets the symlink.

 - first, /etc/timezone is checked
 - then, /etc/localtime is checked

I do see the correct results in lucid.

Maybe you have an outdated copy of  /etc/timezone?
Can you recheck with current lucid?

** Changed in: openjdk-6 (Ubuntu)
       Status: New => Fix Released

-- 
java does not handle timezones correctly
https://bugs.launchpad.net/bugs/463943
You received this bug notification because you are a member of OpenJDK,
which is subscribed to openjdk-6 in ubuntu.

Status in “openjdk-6” package in Ubuntu: Fix Released

Bug description:
Binary package hint: tzdata

Ubuntu 9.10 Karmic

Date d = new Date() <-- should be current local time, but is an hour off

TO FIX :

/etc/localtime should be a **symlink** to (for example) /usr/share/zoneinfo/America/Los_Angeles
NOT a copy of the file

Thanks!