ASF Bugzilla – Attachment 28123 Details for
Bug 52438
[PATCH] Patch to CellDateFormatter for formats with hours and minutes but not seconds
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Patch svn diff
diff.txt (text/plain), 934 bytes, created by
Steve Vysny
on 2012-01-08 16:34:49 UTC
(
hide
)
Description:
Patch svn diff
Filename:
MIME Type:
Creator:
Steve Vysny
Created:
2012-01-08 16:34:49 UTC
Size:
934 bytes
patch
obsolete
>Index: test-data/spreadsheet/DateFormatTests.xlsx >=================================================================== >Cannot display: file marked as a binary type. >svn:mime-type = application/octet-stream >Index: src/java/org/apache/poi/ss/format/CellDateFormatter.java >=================================================================== >--- src/java/org/apache/poi/ss/format/CellDateFormatter.java (revision 1227204) >+++ src/java/org/apache/poi/ss/format/CellDateFormatter.java (working copy) >@@ -90,7 +90,11 @@ > case 'M': > mStart = pos; > mLen = part.length(); >- return part.toUpperCase(); >+ // For 'm' after 'h', output minutes ('m') not month ('M') >+ if (hStart >= 0) >+ return part.toLowerCase(); >+ else >+ return part.toUpperCase(); > > case 'y': > case 'Y':
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 Raw
Actions:
View
Attachments on
bug 52438
: 28123 |
28124