In Debian you can set the timezone with tzconfig. I don't know about the
other distributions. When I call TimeZone.getDefault().toString() it returns
the following:

java.util.SimpleTimeZone[
    id=EST,
    offset=-18000000,
    dstSavings=3600000,
    useDaylight=true,
    startYear=0,
    startMode=3,
    startMonth=3,
    startDay=1,
    startDayOfWeek=1,
    startTime=7200000,
    endMode=2,
    endMonth=9,
    endDay=-1,
    endDayOfWeek=1,
    endTime=7200000
]

As far as I know id is ok, but useDaylight is not, I think it should be
false.

Faw

----- Original Message -----
From: Justin Lee <[EMAIL PROTECTED]>
To: Spectron International, Inc. <[EMAIL PROTECTED]>
Sent: Friday, July 30, 1999 4:14 PM
Subject: Re: Change Timezone


> "Spectron International, Inc." wrote:
> >
> > 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
>
> As a workaround, we use a property in a properties file to set the
> timezone.
>
> > 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?
>
> I wish the JVM did this properly but something is broken somewhere
> either with linux or the jvm.  We couldn't find a fix that wasn't a
> workaround.
>
> --
> 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]

Reply via email to