[ 
https://issues.apache.org/jira/browse/LANG-755?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Henri Yandell closed LANG-755.
------------------------------

    Resolution: Won't Fix

JDK bug. I've made a note in the javadoc of DateFormatUtils (r1299560).
                
> DateFormatUtils.format manipulates Calendar behaviour
> -----------------------------------------------------
>
>                 Key: LANG-755
>                 URL: https://issues.apache.org/jira/browse/LANG-755
>             Project: Commons Lang
>          Issue Type: Bug
>          Components: lang.time.*
>            Reporter: hans-jürgen kozik
>            Priority: Minor
>             Fix For: 3.2
>
>
> {code}
> @Test
> public void testClearCalendar() {
>   Calendar cal = Calendar.getInstance();
>   cal.clear(Calendar.MINUTE);
>   System.out.println(cal.isSet(Calendar.MINUTE)); //false
>   System.out.println(DateFormatUtils.ISO_DATETIME_FORMAT.format(cal));
>   System.out.println(cal.isSet(Calendar.MINUTE)); //true
> }
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply via email to