Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Nov 2003 14:55:13 +0200
From:      Alexey Zelkin <phantom@FreeBSD.org.ua>
To:        Jonathan Chen <jonc@chen.org.nz>
Cc:        freebsd-java@freebsd.org
Subject:   Re: TimeZone defaults.
Message-ID:  <20031112145513.C66655@phantom.cris.net>
In-Reply-To: <20031112025726.GA75356@grimoire.chen.org.nz>; from jonc@chen.org.nz on Wed, Nov 12, 2003 at 03:57:26PM %2B1300
References:  <20031112025726.GA75356@grimoire.chen.org.nz>

next in thread | previous in thread | raw e-mail | index | archive | help
hi,

I have just checked and it works fine here.  Please send PR and I'll
look into this issue later.

On Wed, Nov 12, 2003 at 03:57:26PM +1300, Jonathan Chen wrote:
> Hi,
> 
> This topic came up before with no resolution; and it's still present
> in the latest native JDK1.4.2 port: The default TimeZone is not being
> set correctly:
> 
>     0:baldur-/tmp,3:52pm> date
>     Wed Nov 12 15:53:01 NZDT 2003
>     0:baldur-/tmp,3:53pm> java tztest
>     Greenwich Mean Time
>     0:baldur-/tmp,3:53pm> java -version
>     java version "1.4.2-p5"
>     Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-p5-root_12_nov_2003_10_06)
>     Java HotSpot(TM) Client VM (build 1.4.2-p5-root_12_nov_2003_10_06, mixed mode)
> 
> Here's the code for tztest.java:
> 
>     import java.util.TimeZone;
>     public class tztest
>     {
>             public static void
>             main (
>              String args [])
>             {
>                     TimeZone tz = TimeZone.getDefault ();
> 
>                     System.out.println (tz.getDisplayName ());
>             }
>     }
> 
> TimeZone.getTimeZone(String id) *does* work, so there is a workaround,
> but TimeZone.getDefault() isn't picking the Host-System's TimeZone
> setting.
> 
> I'll raise a PR for it if no one here knows of a quick fix.
> 
> Cheers.
> -- 
> Jonathan Chen <jonc@chen.org.nz>
> ----------------------------------------------------------------------
>                    "Lots of folks confuse bad management with destiny"
>                                                          - Kin Hubbard
> _______________________________________________
> freebsd-java@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-java
> To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031112145513.C66655>