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 TimeZone and Daylight Savings Time 2007 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "TimeZone and Daylight Savings Time 2007" Watch "TimeZone and Daylight Savings Time 2007" New topic

TimeZone and Daylight Savings Time 2007

Marilyn de Queiroz

Joined: Jul 22, 2000
Posts: 9059
We ran into an issue and I wanted to give everyone a heads up. If the timezone is defined as EST, MST, or HST, the behavior has changed. These 3 used to flip back and forth from standard time to daylight savings time. With the DST patch, these three now stay on standard time constantly.

"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Deepak Bala

Joined: Feb 24, 2006
Posts: 6662

I believe it should move on to EDT from EST

SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
Marilyn de Queiroz

Joined: Jul 22, 2000
Posts: 9059
It used to. But with the latest patch, it no longer moves.
Jim Yingst

Joined: Jan 30, 2000
Posts: 18671
Ah, finally. Seems to me that MST should mean MST, not MDT. It's unfortunate that Sun's JDKs supported such misleading terminology for so long.

Note that the API for TimeZone does say:
Three-letter time zone IDs

For compatibility with JDK 1.1.x, some other three-letter time zone IDs (such as "PST", "CTT", "AST") are also supported. However, their use is deprecated because the same abbreviation is often used for multiple time zones (for example, "CST" could be U.S. "Central Standard Time" and "China Standard Time"), and the Java platform can then only recognize one of them.

Programmers needing to retain the old behavior (assuming it's too much trouble to fix the time zone codes to something more appropriate) can follow the instructions in this Sun alert.

"I'm not back." - Bill Harding, Twister
I agree. Here's the link:
subject: TimeZone and Daylight Savings Time 2007
It's not a secret anymore!