Justin:
That should work, but I would have to do it in every program. I thought Java
was supposed to read that information from the computer. As far as I know
the JDK should get the default timezone from the computer it is running in.
What if I run the program in London, or California? Would I have to
recompile it again? Thats the point of the Calendar and Timezone classes, to
know where in the world you are. I think there must be a way to set that up
in an export in the profile script, but i dont know how. Is there a page
where the exports for the JDK (CLASSPATH, ...) are mentioned?
Faw
----- Original Message -----
From: Justin Lee <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 30, 1999 3:18 PM
Subject: Re: Change Timezone
> "Spectron International, Inc." wrote:
> >
> > How do I change from Eastern Daylight Time to Eastern Standard time. As
far
> > as I know Calendar.getInstance() returns the default calendar
information
> > for the machine. Right now my Linux machine is EST but Java returns EDT.
I
> > though that by changing in in Linux it would change the JDK too. Is
there an
> > export I have to set up?
> >
> > Thanks in advance
>
> We had similar problems. Try this cal = Calendar.getInstance(
> TimeZone.getTimeZone( "EST" ) ) ;
>
> --
> Justin Lee | It's not the weight of the stone that's holding you down.
> JEDI | It's the way it fascinates your mind. -- Tourniquet
>
>
> ----------------------------------------------------------------------
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact
[EMAIL PROTECTED]
>
>
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]