MIDRANGE dot COM Mailing List Archive



Home » JAVA400-L » November 2000

Strange results coming from Java Date Method????


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

fixed

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");
       format.setTimeZone(tz1);

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
simple.

Thank You,
Tom




+---
| 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
+---





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

This mailing list archive is Copyright 1997-2014 by MIDRANGE dot COM and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available here. If you have questions about this, please contact