https://bz.apache.org/bugzilla/show_bug.cgi?id=60031

--- Comment #4 from Andrzej Witecki <[email protected]> ---
Unfortunately my patch introduces a failure in TestHSSFSheet#autoSizeDate.
Fortunately it's caused by parsing cell values correctly (IMHO).
Cell values in this test are formatted with pattern "yyyy-mm-dd MMMM hh:mm:ss".
There are 2 cells: first with numerical value 1 (1.01.1900) and second with
numerical value 123456 (3.01.2238).
Before my patch:
- result pattern is: "yyyy-MM-dd mmmm HH:mm:ss"
- String value of first cell is: 1900-01-01 0000 00:00:00
- String value of second cell is: 2238-01-03 0000 00:00:00
After my patch:
- result pattern is: "yyyy-mm-dd MMMM hh:mm:ss"
- String value of first cell is: 1900-01-01 January 00:00:00
- String value of second cell is: 2238-01-03 January 00:00:00

I am not providing a patch for this issue yet as I would prefer sbd verify my
assumptions.

BTW. There're typos within above-mentioned test (TestHSSFSheet#autoSizeDate
l.729). Guess there should be 1 instead of 0 for #getColumnWidth invocations
arguments.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to