[Fwd: Re: TimeZone Defaults]

Christy Pang christy at borderware.com
Mon Apr 11 19:21:40 PDT 2005


c0ldbyte wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Mon, 11 Apr 2005, Christy Pang wrote:
>
>>
>>
>> -------- Original Message --------
>> Subject:     Re: TimeZone Defaults
>> Date:     Mon, 11 Apr 2005 15:05:44 -0400
>> From:     Christy Pang <christy at borderware.com>
>> To:     Kurt Miller <truk at optonline.net>
>> References:     <425AA4DA.8070103 at borderware.com> 
>> <425AB46B.5040602 at iang.org> <012401c53ec1$c164b4e0$150110ac at focus>
>>
>>
>>
>> Kurt Miller wrote:
>>
>>> Is /etc/localtime a symlink? If it is, try copying the tz file
>>> to /etc/localtime instead.
>>
>>
>> It was a symlink. Our /etc file system is a read only file system. 
>> But even copy the TZ file to /etc/localtime
>>
>> md5 /etc/localtime
>> MD5 (/etc/localtime) = 370687bb78b74fc4540f6a316d8bca02
>>                                                                                                                                                                                                                                                                   
>> root at sip-tey 2:24pm # md5 /usr/share/zoneinfo/America/Toronto
>> MD5 (/usr/share/zoneinfo/America/Toronto) = 
>> 370687bb78b74fc4540f6a316d8bca02
>>
>> the result is still wrong, should be *GMT-04:00*
>>
>> $JAVA_HOME/bin/java tztest
>>
>> tz = GMT+04:00
>>
>> Christy
>>
>
> So set the correct time zone ?

No.  The /etc/localtime file  is the same as 
/usr/share/zoneinfo/America/Toronto (same md5), the following code
       TimeZone.getDefault().getID();
ret. GMT+04:00  instead of GMT-04:00 .


>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.0 (FreeBSD)
> Comment: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xF7DF979F
> Comment: Fingerprint = D1DC 0AA4 1C4E EAD4 24EB  7E77 B261 50BA F7DF 979F
>
> iD8DBQFCWwitsmFQuvffl58RApdZAJ4juk7e4kYbt2l8eLolG/vq4fIXMQCeIwDj
> 62U9YSby5yIuEIQ6ElCLdIQ=
> =/C+6
> -----END PGP SIGNATURE-----




More information about the freebsd-java mailing list