Java and timezone issues!
Knute Johnson
knute2009 at knutejohnson.com
Mon Apr 20 22:30:30 UTC 2009
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,
--
Knute Johnson
More information about the ubuntu-users
mailing list