Name: jk109818 Date: 02/27/2002
FULL PRODUCT VERSION :
java version "1.4.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92)
Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode)
FULL OPERATING SYSTEM VERSION :
Windows NT Version 4.0 - SP6
A DESCRIPTION OF THE PROBLEM :
The "Europe/London" TimeZone assumes that 1970-1-1 00:00:00
GMT is in Brittish Summer Time (GMT+1). Looking into it
further it seems that BST is used for all dates between the
start of daylight saving in 1968 to the end of daylight
saving 1971. All other dates seem fine.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. TimeZone zone = TimeZone.getTimeZone("Europe/London");
2. System.out.println(zone.getOffset(0L));
EXPECTED VERSUS ACTUAL BEHAVIOR :
Expected result : 0
Actual result : 3600000 (1hour)
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import java.util.*;
public class DateTest {
public static void main(final String[] args) throws Exception {
final TimeZone zone = TimeZone.getTimeZone("Europe/London");
System.out.println(zone.getOffset(0L));
}
}
---------- END SOURCE ----------
(Review ID: 143269)
======================================================================