commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Yandell (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LANG-763) Reintroduce DateUtils.UTC_TIME_ZONE constant
Date Thu, 17 Oct 2013 07:49:42 GMT

    [ https://issues.apache.org/jira/browse/LANG-763?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13797696#comment-13797696
] 

Henri Yandell commented on LANG-763:
------------------------------------

This seems fair. I notice that Joda Time has a UTC constant (http://joda-time.sourceforge.net/apidocs/org/joda/time/DateTimeZone.html#UTC).

Patch desired for an immutable UTC 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
>             Fix For: Patch Needed
>
>
> 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)

Mime
View raw message