Comment 14 for bug 49068

Revision history for this message
Allen Crider (acrider77) wrote : Re: [Bug 49068] Re: Java reports time zone incorrectly during CDT (US Daylight saving time)

This solution also works for me (creating a link to
/usr/share/zoneinfo/US/Central in my case). I originally reported this
bug against Dapper, but it seemed to go away with Edgy (DST was not in
effect when I installed Edgy and the problem did not appear when DST
started in March). However, it returned when I installed Feisty beta
recently, and it didn't matter whether I used sun-java5 or sun-java6.

Thanks for this solution. It will at least allow me to use the
applications that depend on it until a better solution is provided.

Allen Crider

Christian Assig wrote:
> Something seemed to be wrong with /etc/localtime in my case.
>
> The following solved the problem on my feisty machine:
>
> sudo cp /etc/localtime /etc/localtime.bak
> sudo ln -s -f /usr/share/zoneinfo/Europe/Amsterdam /etc/localtime
>
> See http://ubuntuforums.org/showthread.php?p=2312649
>
> Note however that my old /etc/localtime is binary identical to
> /usr/share/zoneinfo/Europe/Amsterdam. So it looks to me like Java
> expects to find a symbolic link here, and the time zone detection fails
> if Java encounters a regular file instead of the link.
>