Summary: | [PATCH] Fix TestCellFormat.testApplyObjectDate() fail in different time zone | ||
---|---|---|---|
Product: | POI | Reporter: | Hyeonmin Park <hyeonmin.park> |
Component: | SS Common | Assignee: | POI Developers List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | hyeonmin.park |
Priority: | P2 | ||
Version: | 4.1.2-FINAL | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | All | ||
Attachments: |
It's a zip archive which includes diff result(diff.txt), the screenshot of the failed test(fail.png), the screenshot of the resolved test(fix.png).
Patch to set time zone of SimpleDateTime instance to pass the testcase in any time zone The test really fails in a few time zone. I'm in Asia/Seoul(UTC+9). Updated original patch to match convention of instance name |
Description
Hyeonmin Park
2020-02-26 12:55:29 UTC
Comment on attachment 37045 [details]
It's a zip archive which includes diff result(diff.txt), the screenshot of the failed test(fail.png), the screenshot of the resolved test(fix.png).
This 'fix' looks wrong to me.
The test passes reliably for me and and in your CI build.
(In reply to PJ Fanning from comment #1) > Comment on attachment 37045 [details] > It's a zip archive which includes diff result(diff.txt), the screenshot of > the failed test(fail.png), the screenshot of the resolved test(fix.png). > > This 'fix' looks wrong to me. > > The test passes reliably for me and and in your CI build. The test surely fails in a few time zone. Try to change your machine time zone to Asia/Seoul and test again. Created attachment 37046 [details]
Patch to set time zone of SimpleDateTime instance to pass the testcase in any time zone
Created attachment 37047 [details]
The test really fails in a few time zone. I'm in Asia/Seoul(UTC+9).
Created attachment 37048 [details]
Updated original patch to match convention of instance name
|