View | Details | Raw Unified | Return to bug 169821
Collapse All | Expand All

(-)src/org/eclipse/ohf/utilities/Iso8601DateUtilities.java (-1 / +1 lines)
Lines 335-341 Link Here
335
			str.append(StringUtils.leftPad(Integer.toString(cal.get(Calendar.YEAR)), 4, "0"));
335
			str.append(StringUtils.leftPad(Integer.toString(cal.get(Calendar.YEAR)), 4, "0"));
336
		
336
		
337
		if (format.length() >= 6 && "mm".equalsIgnoreCase(format.substring(4, 6)))
337
		if (format.length() >= 6 && "mm".equalsIgnoreCase(format.substring(4, 6)))
338
			str.append(StringUtils.leftPad(Integer.toString(cal.get(Calendar.MONTH)), 2, "0"));
338
			str.append(StringUtils.leftPad(Integer.toString(cal.get(Calendar.MONTH))+1, 2, "0"));
339
		
339
		
340
		if (format.length() >= 8 && "dd".equalsIgnoreCase(format.substring(6, 8)))
340
		if (format.length() >= 8 && "dd".equalsIgnoreCase(format.substring(6, 8)))
341
			str.append(StringUtils.leftPad(Integer.toString(cal.get(Calendar.DAY_OF_MONTH)), 2, "0"));
341
			str.append(StringUtils.leftPad(Integer.toString(cal.get(Calendar.DAY_OF_MONTH)), 2, "0"));

Return to bug 169821