There are many problems with the Calendar classes in JDK 1.1.7, and they are
not specific to Linux. As Chris Abbey has suggested, you can sometimes work
around them by setting the user.timezone property - however for many timezones
(New Zealand and Australian ones, for example), it will still 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...
>     Here is my program:
> ----------------
> import java.lang.*;
> import java.util.*;
>
> public class TestCal {
>     public static void main(String[] argv) {
>         Calendar cal = Calendar.getInstance();
>         System.out.println(cal.getTime());
>     }
> }
> ----------------
> The output of the program is always CDT time.
> Could anybody tell me how to solve this problem? thanks.


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to