You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Routis Haralampos (JIRA)" <de...@myfaces.apache.org> on 2005/11/30 14:02:29 UTC

[jira] Created: (MYFACES-892) Broken date converter

Broken date converter
---------------------

         Key: MYFACES-892
         URL: http://issues.apache.org/jira/browse/MYFACES-892
     Project: MyFaces
        Type: Bug
 Environment: IBM Websphere CE, Windows XP, IBM JDK 1.4.2
    Reporter: Routis Haralampos
    Priority: Critical


When I use the date converter (my enveronment uses greek locale)

<f:convertDateTime pattern="dd/MM/yyyy"  type="date" /> 

the inputText or the tomahawk inputCalendar displays one before the date that my managed bean contains.

For example if my beans contains a date 
a) '2005-12-31 00:00:00'  the jsp presents a value '30/12/2005'
b) '2005-12-31 14:00:00'  the jsp presents a value '30/12/2005'

MyFaces 1.1.0 works fine

-- 
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


[jira] Closed: (MYFACES-892) Broken date converter

Posted by "Simon Kitching (JIRA)" <de...@myfaces.apache.org>.
     [ http://issues.apache.org/jira/browse/MYFACES-892?page=all ]
     
Simon Kitching closed MYFACES-892:
----------------------------------

    Resolution: Invalid

As Steve says, this is not a bug. I've added an entry to the wiki FAQ on this.

> Broken date converter
> ---------------------
>
>          Key: MYFACES-892
>          URL: http://issues.apache.org/jira/browse/MYFACES-892
>      Project: MyFaces
>         Type: Bug
>  Environment: IBM Websphere CE, Windows XP, IBM JDK 1.4.2
>     Reporter: Routis Haralampos
>     Priority: Critical

>
> When I use the date converter (my enveronment uses greek locale)
> <f:convertDateTime pattern="dd/MM/yyyy"  type="date" /> 
> the inputText or the tomahawk inputCalendar displays one before the date that my managed bean contains.
> For example if my beans contains a date 
> a) '2005-12-31 00:00:00'  the jsp presents a value '30/12/2005'
> b) '2005-12-31 14:00:00'  the jsp presents a value '30/12/2005'
> MyFaces 1.1.0 works fine

-- 
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


[jira] Commented: (MYFACES-892) Broken date converter

Posted by "Steve Peterson (JIRA)" <de...@myfaces.apache.org>.
    [ http://issues.apache.org/jira/browse/MYFACES-892?page=comments#action_12358938 ] 

Steve Peterson commented on MYFACES-892:
----------------------------------------

You need to specify the timezone on your tag.  1.1.0 was not spec compliant in converting dates when no timezone was provided.

See the most recent discussion on the mailing list at http://marc.theaimsgroup.com/?l=myfaces-user&m=113027112310925&w=2

> Broken date converter
> ---------------------
>
>          Key: MYFACES-892
>          URL: http://issues.apache.org/jira/browse/MYFACES-892
>      Project: MyFaces
>         Type: Bug
>  Environment: IBM Websphere CE, Windows XP, IBM JDK 1.4.2
>     Reporter: Routis Haralampos
>     Priority: Critical

>
> When I use the date converter (my enveronment uses greek locale)
> <f:convertDateTime pattern="dd/MM/yyyy"  type="date" /> 
> the inputText or the tomahawk inputCalendar displays one before the date that my managed bean contains.
> For example if my beans contains a date 
> a) '2005-12-31 00:00:00'  the jsp presents a value '30/12/2005'
> b) '2005-12-31 14:00:00'  the jsp presents a value '30/12/2005'
> MyFaces 1.1.0 works fine

-- 
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