Mark Wielaard 38ac224a79 6851214: (tz) New Jordan rule creates a failure for SimpleTimeZone parsing post tzdata2009h
Avoid failure when startTime == number of milliseconds per day.

Reviewed-by: okutsu, darcy
2009-09-05 01:20:23 +01:00

24 lines
503 B
Java

/*
* @test
* @bug 0000377
* @summary SimpleTimeZone should accept start/end rules at end of day
*/
import java.util.Calendar;
import java.util.SimpleTimeZone;
public class EndOfDay
{
public static void main(String[] args)
{
SimpleTimeZone stz;
stz = new SimpleTimeZone(0, "End/Day",
Calendar.MARCH, -1, Calendar.FRIDAY,
24 * 60 * 60 * 1000,
Calendar.APRIL, 1, Calendar.THURSDAY,
24 * 60 * 60 * 1000,
3600000);
System.err.println(stz);
}
}