[threeten-dev] Removing ZoneId HST/MST/EST

Stephen Colebourne scolebourne at joda.org
Fri Oct 18 13:58:26 PDT 2013


As per this bug report:
https://bugs.openjdk.java.net/browse/JDK-8026842

I am proposing to remove these three IDs from ZoneId in JDK 8:
HST (Hawaii)
EST (US Eastern standard)
MST (US Mountain standard)

They are the only confusing "short" 3 letter IDs in the TZDB (other
short IDs are not confusing in the same way). These three IDs have a
long a horrid history where they once included daylight savings time
and now do not, requiring a special JDK flag.

These IDs have been marked as deprecated in TimeZone for a very long time.
http://docs.oracle.com/javase/7/docs/api/java/util/TimeZone.html

The correct replacements are:
EST - America/New_York
MST - America/Denver
HST - Pacific/Honolulu

Note that these IDs were never supported:
EDT (Eastern daylight time),
MDT (Mountain daylight),
PST (Pacific standard),
PDT (Pacific daylight),
CST (Central standard),
CDT (Central daylight)
which emphasises the weird nature of the three proposed for deletion,
and the potential for user bugs (by assuming PST must exist if EST
does).

Note that TimeZone will continue to correctly work with these three
IDs (for backwards compatibility).


If you feel strongly about these 3 IDs, speak now!

Stephen


More information about the threeten-dev mailing list