Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 May 1999 14:55:35 -0700
From:      grady@xcf.berkeley.edu (Steven Grady)
To:        freebsd-java@freebsd.org
Subject:   problem with timezones in 1.1.7elf/3.1R
Message-ID:  <19990518215532.947D615079@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following program always produces "GMT":

    public class time {
        public static void main(String argv[]) {
            System.out.println(java.util.TimeZone.getDefault().getID());
        }
    }

I would like it to produce "PDT".  (This causes a problem with
MoneyDance.)
This is true both using TYA and using the default interpreter.
The system knows the correct date -- typing "date" I get:
    Tue May 18 14:54:28 PDT 1999
This is based on the internal clock modified by /etc/localtime, which
is a copy of PST8PDT.

Anyone have any suggestions on how to get it to recognize the timezone
correctly?
--
	Steven
"With muscles of magnitude, STUPENDOUS MAN fights with heroic resolve!"


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?19990518215532.947D615079>