[ https://issues.apache.org/jira/browse/LANG-763?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13806474#comment-13806474 ]
Henri Yandell commented on LANG-763: ------------------------------------ First problem I hit is in building the code. The Timezone class has a new method in Java 7 (observesDaylightTime()), so the code fails to build on earlier versions. Is it possible to extend SimpleTimeZone so this new method is hidden to our source? > Reintroduce DateUtils.UTC_TIME_ZONE constant > -------------------------------------------- > > Key: LANG-763 > URL: https://issues.apache.org/jira/browse/LANG-763 > Project: Commons Lang > Issue Type: New Feature > Components: lang.time.* > Affects Versions: 3.0.1 > Reporter: Attila Király > Priority: Minor > Fix For: Review Patch > > > In LANG-691 DateUtils.UTC_TIME_ZONE was removed because TimeZone-s are > mutable. However it was a handy constant. So it would be nice if it could be > reintroduced in an immutable way. For example: > - by creating a new static method DateUtils.utcTimeZone() {return > TimeZone.getTimeZone("GMT");} > - or by creating an immutable timezone type (subclassing maybe SimpleTimeZone) -- This message was sent by Atlassian JIRA (v6.1#6144)