commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Yandell (Updated) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (LANG-755) DateFormatUtils.format manipulates Calendar behaviour
Date Thu, 12 Jan 2012 08:15:38 GMT

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

Henri Yandell updated LANG-755:
-------------------------------

    Fix Version/s: 3.2

We should definitely javadoc this. I'm not sure we can do much else. It'd be good to test
on the latest JDK to see if it's been fixed.

Setting a 3.2 fixversion for the javadoc as it seems like a very non-intrusive change.
                
> 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

       

Mime
View raw message