[ http://issues.apache.org/jira/browse/MYFACES-644?page=all ]
     
Martin Marinschek closed MYFACES-644:
-------------------------------------

    Fix Version: Nightly
     Resolution: Fixed

> InputDate doesn't parses submitted seconds
> ------------------------------------------
>
>          Key: MYFACES-644
>          URL: http://issues.apache.org/jira/browse/MYFACES-644
>      Project: MyFaces
>         Type: Bug
>   Components: Tomahawk
>     Versions: Nightly
>  Environment: any
>     Reporter: Volker Weber
>     Assignee: Martin Marinschek
>      Fix For: Nightly

>
> Implement to parse the submitted seconds seems to be forgotten.
> I have patched this, the diff follows:
> Index: src/java/org/apache/myfaces/custom/date/HtmlInputDate.java
> ===================================================================
> --- src/java/org/apache/myfaces/custom/date/HtmlInputDate.java  (Revision 
> 292164)
> +++ src/java/org/apache/myfaces/custom/date/HtmlInputDate.java  (Arbeitskopie)
> @@ -209,6 +209,7 @@
>              tempCalendar.set(Calendar.YEAR,Integer.parseInt(year));
>              tempCalendar.set(Calendar.HOUR_OF_DAY,Integer.parseInt(hours));
>              tempCalendar.set(Calendar.MINUTE,Integer.parseInt(minutes));
> +            tempCalendar.set(Calendar.SECOND,Integer.parseInt(seconds));
>              return tempCalendar.getTime();
>          }

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

Reply via email to