https://bz.apache.org/bugzilla/show_bug.cgi?id=60031
Bug ID: 60031
Summary: DataFormatter parses months incorrectly when put at
the end of date segment
Product: POI
Version: 3.15-dev
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: SS Common
Assignee: [email protected]
Reporter: [email protected]
When you have a date format which has two segments (date and time) and the
month indicator ("MM") is placed at the end of date segment than it's replaced
to minutes indicator ("mm") within DataFormatter#createDateFormat(String,
double) for loop.
Eg.: "yyyy\\-dd\\-mm\\ hh:mm:ss" -> "yyyy-dd-mm HH:mm:ss"
and even: "yyyy-dd-MM HH:mm:ss" -> "yyyy-dd-mm HH:mm:ss"
It's obviously caused by the "if 'M' precedes 's' it should be minutes ('m')"
part of code (l.565 for POI 3.15b2) which uses obsolete "ms" variable. Wouldn't
clearing "ms" variable within last else (for white spaces; l.589 in 3.15b2) be
sufficient to solve this issue?
--
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]