aspose file tools*
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
JavaRanch » Java Forums » Java » Java in General
Bookmark "TimeZone and Daylight Savings Time 2007" Watch "TimeZone and Daylight Savings Time 2007" New topic
Author

TimeZone and Daylight Savings Time 2007

Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9052
    
  12
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.


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

Joined: Feb 24, 2006
Posts: 6662
    
    5

I believe it should move on to EDT from EST


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

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

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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: TimeZone and Daylight Savings Time 2007