Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 56550 Details for
Bug 169821
Iso8601DateUtilities.format() returns incorrect month value
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Patch to fix this bug
patch.txt (text/plain), 1.11 KB, created by
Zsolt Török
on 2007-01-08 08:32:50 EST
(
hide
)
Description:
Patch to fix this bug
Filename:
MIME Type:
Creator:
Zsolt Török
Created:
2007-01-08 08:32:50 EST
Size:
1.11 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.ohf.utilities >Index: src/org/eclipse/ohf/utilities/Iso8601DateUtilities.java >=================================================================== >RCS file: /cvsroot/technology/org.eclipse.ohf/plugins/org.eclipse.ohf.utilities/src/org/eclipse/ohf/utilities/Iso8601DateUtilities.java,v >retrieving revision 1.1 >diff -u -r1.1 Iso8601DateUtilities.java >--- src/org/eclipse/ohf/utilities/Iso8601DateUtilities.java 5 Oct 2006 12:09:49 -0000 1.1 >+++ src/org/eclipse/ohf/utilities/Iso8601DateUtilities.java 8 Jan 2007 09:45:24 -0000 >@@ -335,7 +335,7 @@ > str.append(StringUtils.leftPad(Integer.toString(cal.get(Calendar.YEAR)), 4, "0")); > > if (format.length() >= 6 && "mm".equalsIgnoreCase(format.substring(4, 6))) >- str.append(StringUtils.leftPad(Integer.toString(cal.get(Calendar.MONTH)), 2, "0")); >+ str.append(StringUtils.leftPad(Integer.toString(cal.get(Calendar.MONTH))+1, 2, "0")); > > if (format.length() >= 8 && "dd".equalsIgnoreCase(format.substring(6, 8))) > str.append(StringUtils.leftPad(Integer.toString(cal.get(Calendar.DAY_OF_MONTH)), 2, "0"));
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 169821
: 56550