-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Normal
-
Affects Version/s: 8.6.0
-
Component/s: Components
-
None
-
Environment:
ZK 8.6.0
-
None
Steps to Reproduce
<zk> <datebox format="MMM d yyyy" lenient="true"/> </zk>
Input "Aug 32 2018"
Current Result
Accepted and parsed as "Sep 1 2018"
Expected Result
An error message should be popped.
Debug Information
Adding strictDate option shouldn't affect the lenient spec.
https://github.com/zkoss/zk/blob/v8.5.2.1/zul/src/archive/web/js/zul/db/datefmt.js#L325
Only 0 - 31 is valid.
Jan 0 2018 => Dec 31 2018
Feb 30 2018 => Mar 2 2018
Workaround
- relates to
-
ZK-4023 Add strict valid date support to Datebox without lenient mode
-
- Closed
-