You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Yee-Wah Lee (JIRA)" <de...@myfaces.apache.org> on 2014/09/19 07:32:33 UTC

[jira] [Commented] (TRINIDAD-2504) DateFormat.js incorrectly implements 'D' (day of year) parsing

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

Yee-Wah Lee commented on TRINIDAD-2504:
---------------------------------------

Further fixes have been made in Trinidad-2509,  consumers of this fix should also include the changes there. 

> DateFormat.js incorrectly implements 'D' (day of year) parsing
> --------------------------------------------------------------
>
>                 Key: TRINIDAD-2504
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2504
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions: 2.1.0-core
>            Reporter: Yee-Wah Lee
>            Priority: Minor
>             Fix For: 2.1.1-core
>
>         Attachments: trin_2504_DateFormatDayOfYear.diff
>
>
> 1. Create an inputDate with a converter that uses 'D' (day of year) pattern and no initial value
> e.g. 
> <tr:inputDate id='id1'>
>   <tr:convertDateTime pattern='DDD'/>
> </tr:inputDate>
> 2. Run the demo and pick the 1st of January (any year)
> 3. The input shows 355, the correct value should be 1. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)