aspose file tools*
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 JavaScript Promises Essentials this week in the JavaScript 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: 3732
    
  16
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: 14338
    
  22

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 8 API documentation
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Does jdk131-b24 has fix for DST 2007 ?