You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Steven Cooke (JIRA)" <de...@myfaces.apache.org> on 2006/01/17 20:45:42 UTC

[jira] Commented: (MYFACES-1037) ScheduleUtil.truncate does not truncate dates properly

    [ http://issues.apache.org/jira/browse/MYFACES-1037?page=comments#action_12363020 ] 

Steven Cooke commented on MYFACES-1037:
---------------------------------------

Correction -- it is apparent only when *the input date* is in the afternoon

> ScheduleUtil.truncate does not truncate dates properly
> ------------------------------------------------------
>
>          Key: MYFACES-1037
>          URL: http://issues.apache.org/jira/browse/MYFACES-1037
>      Project: MyFaces
>         Type: Bug
>   Components: Sandbox
>  Environment: All
>     Reporter: Steven Cooke

>
> The Calendar.AM_PM field needs to be set for Calendar to compute the time properly. 
> Fix:
>   Insert the following at line 383:
>       cal.set(Calendar.AM_PM, Calendar.AM);
> Note: this bug is only apparent in the afternoon

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