You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2012/07/12 08:24:09 UTC
[Bug 53369]
testDateFormat(org.apache.poi.ss.format.TestCellFormatPart)junit.framework.ComparisonFailure: format "org.apache.poi.ss.format.CellFormatPart@dbcd0e" expected:<"11-10-[]52"> but was:<"11-10-[19]52">
https://issues.apache.org/bugzilla/show_bug.cgi?id=53369
--- Comment #4 from jack <ma...@gmail.com> ---
I can confirm the same issue with JDK1.7
java version "1.7.0"
Java(TM) SE Runtime Environment (build 1.7.0-b147)
Java HotSpot(TM) 64-Bit Server VM (build 21.0-b17, mixed mode)
It's coused by SimpleDateFormat format.
new java.text.SimpleDateFormat("d-M-y").format(new Date())
is "12-7-2012",
but in excel the format result is "12-7-12".
Could fixed in DatePartHandler(org.apache.poi.ss.format.CellDateFormatter).
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org