• Subject: Strange results coming from Java Date Method????
  • From: tmalin@xxxxxxxxxxxxxx
  • Date: Mon, 6 Nov 2000 10:05:46 -0600

I use a date method to get current date and time. Before Day light savings
it worked perfectly, now it is an hour behind the current time on the
AS/400. We changed the AS/400's time for daylight savings. example 9:00 AM
CST 8:00 AM CST.

       Date today = new Date(); // Current Date & Time
       TimeZone tz1 = TimeZone.getTimeZone("CST");
       SimpleDateFormat format = new SimpleDateFormat("EEEE MMM. dd, yyyy
hh:mm:ss z");

I recompiled the Java pgm and placed the new version in the IFS still an
hour off.

Any help would greatly be appreciated, hopefully I am missing something

Thank You,

| This is the JAVA/400 Mailing List!
| To submit a new message, send your mail to JAVA400-L@midrange.com.
| To subscribe to this list send email to JAVA400-L-SUB@midrange.com.
| To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner: joe@zappie.net

This thread ...

Return to Archive home page | Return to MIDRANGE.COM home page