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