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