This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java in General and the fly likes Does jdk131-b24 has fix for DST 2007 ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Does jdk131-b24 has fix for DST 2007 ?" Watch "Does jdk131-b24 has fix for DST 2007 ?" New topic
Author

Does jdk131-b24 has fix for DST 2007 ?

Kalyana Sundaram
Ranch Hand

Joined: Mar 18, 2005
Posts: 94
Its well known about the U.S. Daylight Saving Time Changes in 2007. My question is - Does jdk131-b24 has fix for DST 2007 ?


Only those who will risk going too far can possibly find out how far one can go !!!
Joanne Neal
Rancher

Joined: Aug 05, 2005
Posts: 3418
    
  12
Java DST changes support


Joanne
Raj Konduru
Greenhorn

Joined: Jun 04, 2003
Posts: 5
Dear Friends,

I was wondering if we will get affected even if I am not using the TimeZone class. For instance, we do use Calendar, SimpleDateFormat, etc, however we do not use the TimeZone class. Please let me know if we still need to use the patch.

Thanks


-Raj
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14074
    
  16

Date, SimpleDateFormat etc. use TimeZone behind the scenes. If you print a Date object to the screen by simply using toString() on it:

Date d = new Date();
System.out.println(d.toString());

then Java will print the date in the current time zone, which might be slightly different in summer or winter. For example, if I run this right now I get:

Fri Jan 12 08:10:53 CET 2007

But when it's summertime, the timezone displayed will be "CEST" instead of "CET". So yes, you could be affected even if you don't use class TimeZone directly in your source code.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Does jdk131-b24 has fix for DST 2007 ?
 
Similar Threads
Daylight saving issue.
Do the JVM's Calendar/Date objects use the system's tzdata for daylight savings time changes?
java Timer
DST changes 2007
JDK build 1.3.1-b24