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:36:43 UTC

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

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


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

Posted by "Steven Cooke (JIRA)" <de...@myfaces.apache.org>.
    [ 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


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

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

Jurgen Lust updated MYFACES-1037:
---------------------------------

    Attachment: truncate.patch

This patch fixes this issue. The hour property that is set to 0 must be HOUR_OF_DAY instead of HOUR

> 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
>  Attachments: truncate.patch
>
> 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


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

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

    Fix Version: Nightly
     Resolution: Fixed

Fixed in the SVN. Thanks again Jurgen.

> 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
>      Fix For: Nightly
>  Attachments: truncate.patch
>
> 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