ASF Bugzilla – Attachment 37048 Details for
Bug 64179
[PATCH] Fix TestCellFormat.testApplyObjectDate() fail in different time zone
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Updated original patch to match convention of instance name
diff.txt (text/plain), 790 bytes, created by
Hyeonmin Park
on 2020-02-26 13:46:46 UTC
(
hide
)
Description:
Updated original patch to match convention of instance name
Filename:
MIME Type:
Creator:
Hyeonmin Park
Created:
2020-02-26 13:46:46 UTC
Size:
790 bytes
patch
obsolete
>Index: src/testcases/org/apache/poi/ss/format/TestCellFormat.java >=================================================================== >--- src/testcases/org/apache/poi/ss/format/TestCellFormat.java (revision 1874542) >+++ src/testcases/org/apache/poi/ss/format/TestCellFormat.java (working copy) >@@ -850,7 +850,9 @@ > @Test > public void testApplyObjectDate() throws ParseException { > CellFormat cf1 = CellFormat.getInstance("m/d/yyyy"); >- Date date1 = new SimpleDateFormat("M/d/y", Locale.ROOT).parse("01/11/2012"); >+ SimpleDateFormat sdf1 = new SimpleDateFormat("M/d/y", Locale.ROOT); >+ sdf1.setTimeZone(TimeZone.getTimeZone("CET")); >+ Date date1 = sdf1.parse("01/11/2012"); > assertEquals("1/11/2012", cf1.apply(date1).text); > } >
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 64179
:
37045
|
37046
|
37047
| 37048