Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Mar 2002 14:45:39 +1100
From:      "Joe Shevland" <jshevland@j-elite.com>
To:        "FreeBSD-Java" <java@FreeBSD.ORG>
Subject:   RE: Setting the JVM timezone
Message-ID:  <HEECIHEEJDBMCCGMGIOBAEJHCFAA.jshevland@j-elite.com>
In-Reply-To: <20020313162541.A37054@grimoire.chen.org.nz>

next in thread | previous in thread | raw e-mail | index | archive | help
Just ran the same test on FBSD 4.5-STABLE in Australia (AEST):

www> uname -a
FreeBSD #### 4.5-STABLE FreeBSD 4.5-STABLE #3: Tue Mar 12 12:44:39 EST =
2002
www> java TestRun
The time is: 14:39 EST
www> date
Wed Mar 13 14:39:37 EST 2002

So all good here.

Regards,
Joe

> [...]
> > Can people on this list run a simple program on their FreeBSD=20
> environment,
> > and see if it returns the same TZ value that their server clock=20
> is set to,
> > and let the list know?  Thanks.
>=20
> I've tweaked it slightly, so that it looks like:
>=20
>     import java.util.Date;
>     import java.text.SimpleDateFormat;
>=20
>     public class TestRun
>     {
>         public static void main(String[] args)
>         {
>             SimpleDateFormat formatter =3D new=20
> SimpleDateFormat("HH:mm zzz");
>             String str =3D formatter.format(new Date());
>             System.out.println("The time is: " + str);
>         }
>     }
>=20
> Output is:
>=20
>     central-~,4:20pm> date
>     Wed Mar 13 16:20:23 NZDT 2002
>     central-~,4:20pm> java TestRun
>     The time is: 16:20 NZDT
>=20
> That looks correct to me, I think.
> --=20
> Jonathan Chen <jonc@chen.org.nz>
> ----------------------------------------------------------------------
>                         "Irrationality is the square root of all evil"
>                                                   - Douglas Hofstadter
>=20
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-java" in the body of the message
>=20


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message




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