myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Volker Weber (JIRA)" <myfaces-...@incubator.apache.org>
Subject [jira] Commented: (MYFACES-506) DateTimeConverter.getTimeZone should return the default time of the GMT zone by default
Date Wed, 21 Sep 2005 15:49:28 GMT
    [ http://issues.apache.org/jira/browse/MYFACES-506?page=comments#action_12330103 ] 

Volker Weber commented on MYFACES-506:
--------------------------------------

Or getTimeZone() must also used in getAsString().

The current behavior is that  successively call getAsString() and getAsObject() 
as is done in one request results in a change of the Date objects value
if no timezone is explicitly set and the system default timzone is not GMT.

You can reproduce the problem if you deploy the follwing tags an just press a few times on
submit.

The hour changes on every submit.

Of cause you neet a 'date3' bean of type java.util.Date. I'm using the date.jsp from simple
examples.
 
<h:inputHidden value="#{date3}">
     <f:convertDateTime pattern="HH:mm" />
</h:inputHidden>
<f:verbatim><br></f:verbatim>
<h:outputText value="#{date3}"/>
<f:verbatim></p></f:verbatim>

<h:commandButton value="Submit"/>

> DateTimeConverter.getTimeZone should return the default time of the GMT zone by default
> ---------------------------------------------------------------------------------------
>
>          Key: MYFACES-506
>          URL: http://issues.apache.org/jira/browse/MYFACES-506
>      Project: MyFaces
>         Type: Bug
>   Components: JSR-127
>     Versions: 1.0.9m9
>     Reporter: Bruno Aranda
>     Assignee: Bruno Aranda
>      Fix For: 1.1.0

>
> DateTimeConverter.getTimeZone should return the default time of the GMT zone by default,
and not null.

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


Mime
View raw message