https://issues.apache.org/bugzilla/show_bug.cgi?id=45398

           Summary: [PATCH] Fix HSSFDateUtil to recognize formats with
                    "AM/PM"
           Product: POI
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P2
         Component: HSSF
        AssignedTo: dev@poi.apache.org
        ReportedBy: [EMAIL PROTECTED]


Created an attachment (id=22258)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=22258)
patch for org.apache.poi.hssf.usermodel.HSSFDateUtil.java

HSSFDateUtil.isADateFormat(int,String) returns a false negative when evaluating
valid date formats containing "AM/PM", "am/pm", "A/P", "a/p". An example is
"m/d/yy h:mm AM/PM".

This can be fixed by adding a forward slash to a regex character class in
HSSFDateUtil.java. Patch attached.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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