[
https://issues.apache.org/jira/browse/LANG-755?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
hans-jürgen kozik updated LANG-755:
-----------------------------------
Description:
{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}
was:
{code}
@Test
public void testClearCalendar() throws Exception {
Calendar calDate = Calendar.getInstance();
c.clear(Calendar.MINUTE);
System.out.println(calDate.isSet(Calendar.MINUTE)); //false
System.out.println(DateFormatUtils.ISO_DATETIME_FORMAT.format(calDate));
System.out.println(calDate.isSet(Calendar.MINUTE)); //true
}
{code}
> 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
>
> {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.
For more information on JIRA, see: http://www.atlassian.com/software/jira