From: <ap...@vh...> - 2006-03-03 14:24:16
|
Author: apevec Date: 2006-03-03 15:23:41 +0100 (Fri, 03 Mar 2006) New Revision: 1100 Modified: trunk/ccm-core/src/com/arsdigita/domain/DomainObjectXMLRenderer.java Log: +1 at the correct place Modified: trunk/ccm-core/src/com/arsdigita/domain/DomainObjectXMLRenderer.java =================================================================== --- trunk/ccm-core/src/com/arsdigita/domain/DomainObjectXMLRenderer.java 2006-02-28 12:08:54 UTC (rev 1099) +++ trunk/ccm-core/src/com/arsdigita/domain/DomainObjectXMLRenderer.java 2006-03-03 14:23:41 UTC (rev 1100) @@ -347,7 +347,7 @@ Calendar calDate = Calendar.getInstance(); calDate.setTime(date); element.addAttribute("year", Integer.toString(calDate.get(Calendar.YEAR))); - element.addAttribute("month", Integer.toString(calDate.get(1+Calendar.MONTH))); + element.addAttribute("month", Integer.toString(calDate.get(Calendar.MONTH)+1)); element.addAttribute("day", Integer.toString(calDate.get(Calendar.DAY_OF_MONTH))); element.addAttribute("hour", Integer.toString(calDate.get(Calendar.HOUR_OF_DAY))); element.addAttribute("minute", Integer.toString(calDate.get(Calendar.MINUTE))); |