[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-2404) TimeZoneSelector: Initialization

Martin Trummer (JIRA) jira-events at lists.jboss.org
Wed Dec 19 04:47:43 EST 2007


TimeZoneSelector: Initialization
--------------------------------

                 Key: JBSEAM-2404
                 URL: http://jira.jboss.com/jira/browse/JBSEAM-2404
             Project: JBoss Seam
          Issue Type: Feature Request
    Affects Versions: 2.0.0.CR2
            Reporter: Martin Trummer


org.jboss.seam.international.TimeZoneSelector
when called for the first time (no cookie set), 
initTimeZone() will not initialize the id, thus:
* getTimeZoneId() will return null, but
* getTimeZone() will return the default timezone
this is not consistent

it would be better to initialize the id in the initTimeZone() method to the default timezone (if no cookie is set).
then the getTimeZone() method could always return java.util.TimeZone.getTimeZone( getTimeZoneId(), and another benefit is, that the null check in getTimeZone() can now be eliminated.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the seam-issues mailing list