File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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

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

Joined: Aug 05, 2005
Posts: 3742
Java DST changes support

Raj Konduru

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.


Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 15080

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();

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 8 API documentation
I agree. Here's the link:
subject: Does jdk131-b24 has fix for DST 2007 ?
It's not a secret anymore!