ASF Bugzilla – Attachment 26933 Details for
Bug 51115
Date format string like "dd\.mm\.yyyy;@" is not handled correctly.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
proposed patch to fix this bug.
51115.patch (text/plain), 707 bytes, created by
Wu, Fan
on 2011-04-25 04:57:27 UTC
(
hide
)
Description:
proposed patch to fix this bug.
Filename:
MIME Type:
Creator:
Wu, Fan
Created:
2011-04-25 04:57:27 UTC
Size:
707 bytes
patch
obsolete
>Index: src/java/org/apache/poi/ss/usermodel/DataFormatter.java >=================================================================== >--- src/java/org/apache/poi/ss/usermodel/DataFormatter.java (revision 1096425) >+++ src/java/org/apache/poi/ss/usermodel/DataFormatter.java (working copy) >@@ -351,6 +351,7 @@ > formatStr = formatStr.replaceAll("\\\\/","/"); // weird: m\\/d\\/yyyy > formatStr = formatStr.replaceAll(";@", ""); > formatStr = formatStr.replaceAll("\"/\"", "/"); // "/" is escaped for no reason in: mm"/"dd"/"yyyy >+ formatStr = formatStr.replaceAll("\\\\.", "."); > > boolean hasAmPm = false; > Matcher amPmMatcher = amPmPattern.matcher(formatStr);
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 51115
: 26933