Re: Change Timezone

1999-07-30 Thread Spectron International, Inc.
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=-1800, dstSavings=360, useDaylight=true, startY

Re: Change Timezone

1999-07-30 Thread Spectron International, Inc.
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

Re: Change Timezone

1999-07-30 Thread Justin Lee
"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

Change Timezone

1999-07-30 Thread Spectron International, Inc.
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

TimeZone problems

1999-07-29 Thread Spectron International, Inc.
How do I change the daylight savings time. Is there an export I have to add. My zone is EST but without daylight savings time. I changed in Linux but Java still sees it the TimeZone.toString() returns the following: java.util.SimpleTimeZone[ id=EST, offset=-1800, dstSavings=360, u

timezone weirdness

1999-05-04 Thread Godmar Back
Hi, I'm using the glibc version of jdk1.1.7v1a on a RH 5.2 system with glibc 2.0.7. When trying to run some programs, I'm getting this message: java.lang.Error: dtz null at java.util.TimeZone.getDefault(TimeZone.java:94) at at at ObjectSerialization.main(ObjectS

Re: java.util.Calendar timezone problem

1999-04-15 Thread Bryce McKinlay
screw up in other ways. JDK 1.2 works much better in this respect. regards [ bryce ] Feng-Cheng Chang wrote: > I have a question about the timezone settings: > My Linux box is using local CST time, but the java.lang.Calendar or > java.lang.Date always report CDT... >

Re: java.util.Calendar timezone problem

1999-04-15 Thread Feng-Cheng Chang
I have the /etc/localtime link to /usr/share/zoneinfo/Asia/Taipei, which is reported as CST under date command and the offset is GMT+8 (uh...confilict with /usr/share/zoneinfo/US/Central ??). The GMT+8 is the TimeZone CTT. I'm so confused why the zoneinfo are different under OS and java. One

Re: java.util.Calendar timezone problem

1999-04-15 Thread Chris Abbey
s) NT then is that NT sets user.timezone to _my_ timezone instead of arbitrarily picking EST. Why isn't Linux?? At 10:16 AM 4/15/99 -0500, Marius Schamschula wrote: >Feng-Cheng, > >You beat me to the post. I've got a similar, related?, problem. I have >two machines, both

java.util.Calendar timezone problem

1999-04-14 Thread Feng-Cheng Chang
Hello all, I have a question about the timezone settings: My Linux box is using local CST time, but the java.lang.Calendar or java.lang.Date always report CDT... Here is my program: import java.lang.*; import java.util.*; public class TestCal { public static void

Re: timezone

1999-01-26 Thread Martin Sorgatz
gt; new Date()'. The reported time is one hour late. In Linux the CET is > reported (I live in the Netherlands) as wanted but Java reports the UTC. > How can I make my Java software report the localtime without making my > code timezone depended (addind one hour is not a wanted solu

Re: timezone

1999-01-25 Thread Rob Nugent
but Java reports the UTC. > How can I make my Java software report the localtime without making my > code timezone depended (addind one hour is not a wanted solution) ? > > Thanx in advance, > > Jeroen -- Rob Nugent Development Manager UniKix Technologies Europe [EMAIL PROTECTED] Tel: +44 (0) 1489 585503 Fax: +44 (0) 1489 881363

Re: timezone

1999-01-25 Thread Martin Little
Java software report the localtime without making my > code timezone depended (addind one hour is not a wanted solution) ? Look at java.util.TimeZone. ../Martin

timezone

1999-01-25 Thread Jeroen Siffels
(/bin/date) the date I see is corrent, but when I use in Java 'Data d = new Date()'. The reported time is one hour late. In Linux the CET is reported (I live in the Netherlands) as wanted but Java reports the UTC. How can I make my Java software report the localtime without making my code ti

Re: Date, TimeZone, Calendar, GregorianCalendar, SimpleTimeZone

1998-09-17 Thread Chris Kakris
ass DateTimeThingy { public static void main(String[] args) throws Exception { Calendarcalendar; SimpleDateFormatdateformatter; String systemDate; TimeZone timeZ

Date, TimeZone, Calendar, GregorianCalendar, SimpleTimeZone

1998-09-17 Thread Bruce J. Carter
Greetings Folks, I have a question regarding the Calendar and TimeZone classes. When a TimeZone object is instaniated and getDefault is called it returns GMT time, and any calls for time are based on GMT. The machine is in Alaska and the TZ information is set to Alaska Time. Are we doing