JRE 1.3.1_20 STILL gets US 2007 DST wrong
Has anybody else noticed that when the clocks change at 2AM on 3/11/07 that all 1.3.1_18+ (all the way to 20) will set the clocks BACK one hour (to 1AM) instead of FORWARD to 3AM (as it does correctly with 1.4).
I've seen it in Windows XP and Linux systems. Any ideas?
Since it is now March 7, this is a pretty critical item for our production customers! (And yes, we're stuck w/Weblogic 5.1, so JDK 1.3)
Here's a date checker routine to demonstrate:
Just enter "03/11/2007 2:00 AM" as a cmd arg to see the different behaviors.
import java.util.Date;
import java.text.*;
public class DateChecker {
public static void main(String[] args)
{
String dateText = "03/11/2007 03:00 AM";
if (args.length > 0)
dateText = args[0];
DateFormat df = DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT);
try
{ Date date = df.parse(dateText);
System.out.println(df.format(date)+": "+date.getTime());
} catch (ParseException pe)
{
pe.printStackTrace();
}
}
}

