You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Attila Király (Created JIRA)" <ji...@apache.org> on 2011/10/25 20:30:32 UTC

[jira] [Created] (LANG-763) Reintroduce DateUtils.UTC_TIME_ZONE constant

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


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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira