|
Hi Tom - Check the UTC offset system value ... WRKSYSVAL QUTCOFFSET If you are now on Central Standard Time, it should be -06:00 When changing the time going from/to daylight savings, the UTC offset needs to be changed as well as the system time. For the U.S. Central time zone, the UTC offset is -06:00 during CST and -05:00 during CDT. Ken Southern Wine and Spirits of Nevada, Inc. Opinions expressed are my own and do not necessarily represent the views of my employer or anyone in their right mind. > -----Original Message----- > From: tmalin@hannasteel.com [SMTP:tmalin@hannasteel.com] > Sent: Monday, November 06, 2000 08:06 > To: JAVA400-L@midrange.com > Subject: Strange results coming from Java Date Method???? > > 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 > +--- +--- | 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 +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.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 on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.