Submitted On 08-MAR-2007
does anyone know if this is also problem with the DST patch (e.i older JDK version 1.3.x with patch)
Please advice,
Amit
amonovich@rsa.com
Submitted On 08-MAR-2007
Is the applicable to the JRE 1.5.0_11 and should I be removing the EST file documented in the Work Around
Submitted On 08-MAR-2007
Does this issue effect other vendor JVM's that are built off of Sun's implementation such as JRockit or HP?
Submitted On 08-MAR-2007
Does this bug impact version 1.4.2_11? I'm thinking of rolling back as a workaround. Thanks.
Submitted On 08-MAR-2007
Does this apply on the affected JDK's which also have the DST patch applied?
Submitted On 08-MAR-2007
we are not parsing time in Dateformat.
We are using parse on date in Dateformat.
Is the date parsing also effected by this bug ?
Pls let us know.
Thx,
Archana
Submitted On 08-MAR-2007
Calendar.set() shows this behavior as well (and may be the root cause). Same repro, but use:
Calendar cal = Calendar.getInstance(TimeZone.getTimeZone("EST"));
cal.set(2007, 05, 06, 14, 00, 00);
Date date = cal.getTime();
Submitted On 08-MAR-2007
cjuettner
There's a better description and explanation for this in the bug report for bug id 6466476.
This does seem to affect HP's JVM, not sure about JRockit. And this seems to have been introduced in the DST patches. I ran the code in this report against a JVM before and after applying the DST patches, works as expected before, exhibits the bug afterwards.
Submitted On 09-MAR-2007
This issui do effect JRockit as well, and all the workarounds so far (both removing EST, or running tzupdater with -f -bc) will work for JRockit. You will have to use the JRockit version of tzupdater though (http://edocs.bea.com/jrockit/geninfo/diagnos/tzupdate.html)
Submitted On 09-MAR-2007
I would like a comment from Sun about this issue. Sure, it is related to 6466476 but it's not quite the same. 6466476 is a decision by Sun to be compatible with the Olsen time zone database, but in this issue the same time-string is parsed to differ only two hours if timezones three hours apart. That has to be considered a strange behaviour even if EST no longer uses Daylight Saving Time.
Submitted On 09-MAR-2007
Also, isn't this the way you SHOULD be using EDT after the change in behaviour for EST/EDT? Using EST to describe "winter time" and EDT to describe "summer time". Otherwise, what is the recommended way to perform the actions in the repro? I couldn't change EDT to America/New_York, but maybe that is because of the argument to the SimpleDateFormat constructor?
If you really want to create a date from East coast Summertime, what should you use instead?
Finally, if three letter time zones are deprecated, how come the output from date use them?
Submitted On 09-MAR-2007
Its seems that this bug does not exist in JRE version v1.3.1_19. I ran the test case mention in this article with this version & it gave correct output.
Vishal
Submitted On 09-MAR-2007
MarkDrummond
Is running tzupdater with '-bc' a proper workaround for this?
Mark
Submitted On 09-MAR-2007
I was able to confirm this issue with several 1.4.2 and 1.5.0 JREs. However, jre1.5.0_06, jre1.5.0_07 do not exhibit this timezone issue.
I also reproduced the problem using MDT.
Submitted On 09-MAR-2007
Running tzupdater -f -bc seems to have fixed the problem. I tested it with EDT and MDT on several 1.4.2 and 1.5.0 JREs and both work now.
Does the -bc flag introduce new issues with the JREs?
Submitted On 09-MAR-2007
Does this affect CST in any way?
Thanks.
Submitted On 09-MAR-2007
We see this issue for jdk1.4.2_12 also. JDK1.4.2_11 looks to be fine.
Ashok
apatil@guidewire.com
Submitted On 09-MAR-2007
Please refer to the following link for SUN's response:
http://sunsolve.sun.com/search/document.do?assetkey=1-26-102836-1
Cheers,
Lefond
Submitted On 09-MAR-2007
Since this is a VERY serious issue an info about the ETA of a fix would be greatly appreciated. Thx.
support@hobsoft.com
Submitted On 09-MAR-2007
mferrant
Is anyone aware if this issue impacts JRE 1.3.1.18 and older? I see that Vishal mentioned that it did not fail with .19, but I am looking for .18 feedback.
Submitted On 09-MAR-2007
gdaswani
> Does this affect CST in any way?
> Thanks.
----
doesn't seem like it (only affects Eastern and Mountain)
running the following
java -Duser.timezone=US/Hawaii Moh (jdk ver 1.4.2_13)
import java.text.*;
import java.util.*;
public class Moh {
public static void main(String[] args) throws Exception {
// note, HST == -10H UTC, no daylight savings
SimpleDateFormat timestampFormatWithZone = new SimpleDateFormat("yyyy-MM-dd HH:mm zzz");
Date date = timestampFormatWithZone.parse("2007-06-06 06:00 EST");
System.out.println("Eastern Time should be 2007-06-06 00:00 in US/Hawaii == " + date);
date = timestampFormatWithZone.parse("2007-06-06 05:00 CDT");
System.out.println("Central Time should be 2007-06-06 00:00 in US/Hawaii == " + date);
date = timestampFormatWithZone.parse("2007-06-06 04:00 MDT");
System.out.println("Mountain Time should be 2007-06-06 00:00 in US/Hawaii == " + date);
date = timestampFormatWithZone.parse("2007-06-06 03:00 PDT");
System.out.println("Pacific Time should be 2007-06-06 00:00 in US/Hawaii == " + date);
}
}
Submitted On 09-MAR-2007
gdaswani
only Eastern and Mountain seem to be affected.
jdk ver 1.4.2_13
java -Duser.timezone=US/Hawaii Moh
public class Moh {
public static void main(String[] args) throws Exception {
// note, HST == -10H UTC, no daylight savings
SimpleDateFormat timestampFormatWithZone = new SimpleDateFormat("yyyy-MM-dd HH:mm zzz");
Date date = timestampFormatWithZone.parse("2007-06-06 06:00 EDT");
System.out.println("Eastern Time should be 2007-06-06 00:00 in US/Hawaii == " + date);
date = timestampFormatWithZone.parse("2007-06-06 05:00 CDT");
System.out.println("Central Time should be 2007-06-06 00:00 in US/Hawaii == " + date);
date = timestampFormatWithZone.parse("2007-06-06 04:00 MDT");
System.out.println("Mountain Time should be 2007-06-06 00:00 in US/Hawaii == " + date);
date = timestampFormatWithZone.parse("2007-06-06 03:00 PDT");
System.out.println("Pacific Time should be 2007-06-06 00:00 in US/Hawaii == " + date);
}
}
Submitted On 12-MAR-2007
NagarajHegde
what is the expected date for fix of this defect jre JRE 1.4.2_13
Submitted On 12-MAR-2007
cwhistler
I am running 05_11 in the central time zone and see this as an issue. The SimpleTimeZone.inDaylightTime() method returns false today, though it should be true.
What can be done to fix the central time zone given that the rest of this bug only addresses EST, HST and MST??
Submitted On 12-MAR-2007
cwhistler
just to clarify, this is how I determine that the timezone is incorrect in the central timezone
TimeZone tz = TimeZone.getDefault();
SimpleTimeZone stz = new SimpleTimeZone(tz.getRawOffset(), tz.getID());
Calendar cal = Calendar.getInstance();
System.out.println(stz.inDaylightTime(cal.getTime()));
Submitted On 12-MAR-2007
cwhistler
Sorry, ignore my posts about central time. We should have just used the TimeZone object directly and should have read the Javadocs for SimpleTimeZone constructor a little better.
Submitted On 20-MAR-2009
Is the applicable to the JRE 1.5.0_07(b03)?
PLEASE NOTE: JDK6 is formerly known as Project Mustang
|