https://issues.apache.org/bugzilla/show_bug.cgi?id=54557
Bug ID: 54557
Summary: DateUtil.isADateFormat returns false positives
Product: POI
Version: unspecified
Hardware: PC
OS: Mac OS X 10.4
Status: NEW
Severity: normal
Priority: P2
Component: POI Overall
Assignee: [email protected]
Reporter: [email protected]
Classification: Unclassified
Created attachment 29948
--> https://issues.apache.org/bugzilla/attachment.cgi?id=29948&action=edit
Test program exhibiting the bug
DateUtil.isCellFormatted(Cell) returns true for a numeric cell that's formatted
as ".0000". Tracing through the code, this is because
DateUtil.isADateFormat(165, ".0000") is returning true. That's obviously not a
date format; maybe date_ptrn3 needs to be made more strict?
I've enclosed a simple program which exhibits this.
--
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]