Java and timezone issues!
NoOp
glgxg at sbcglobal.net
Tue Apr 21 03:26:54 UTC 2009
On 04/20/2009 03:30 PM, Knute Johnson wrote:
> John L Fjellstad wrote:
>> Knute Johnson <knute2009 at knutejohnson.com> writes:
>>
>>> Will you try my applet at
>>>
>>> http://rabbitbrush.frazmtn.com/clock.html
>>>
>>> and see if it gives you the correct time? Do you have
>>> /etc/sysconfig/clock or any of the other places that Java looks for
>>> timezone info? Which version of Java are you running?
>>
>> $ java -version
>> java version "1.6.0_13"
>> Java(TM) SE Runtime Environment (build 1.6.0_13-b03)
>> Java HotSpot(TM) Server VM (build 11.3-b02, mixed mode)
>>
>> Gives correct time here (CEST)
>>
>
> John:
>
> Do you have a /etc/sysconfig/clock file? Adding the
> /etc/sysconfig/clock file makes mine work correctly. It has an entry in it;
>
> ZONE="America/Los_Angeles"
>
> and leaving off the quotes makes it NOT work. This might be the real
> work-around.
>
> Thanks,
>
While that does work (on my intrepid systems), it creates the problem of
having to change the file each time you move from one timezone to
another (think laptop + travel). So in order to use it as a reasonable
workaround, I think you'd need to figure out how to have the file be
automatically updated from /etc/timezone. Otherwise your stuck on left
coast time forever.
Further, I think that it's important to figure out why the issue doesn't
occur on hardy, but does occur on intrepid. Both hardy systems that I
tested are upgrades from d-e-f-g-hardy. I've another system that has a
fresh hardy install on it that I can test tomorrow to see if it occurs
on that system as well.
More information about the ubuntu-users
mailing list