Describe the bug
When passing in a parse format of YYYY-MM-DD with an invalid date string of 10/12/2014, should result in and invalid date but instead resolves to 08-14-2015
Expected behavior
Should result in date.isValid() === false
Information
IssueHunt Summary
IssueHunt has been backed by the following sponsors. Become a sponsor
With customParseFormat plugin
dayjs('2014-12-01', 'YYYY-MM-DD').toISOString() returns 2014-12-01T00:00:00.000Z
Looks good.
@xxyuk Right sorry, I updated my issue comments. If you check the codesandbox it should be throwing an error when trying to parse the invalid date format but instead parses to a random date.
will fix soon
@issuehunt has funded $50.00 to this issue.
:tada: This issue has been resolved in version 1.8.13 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
@iamkun has rewarded $45.00 to @iamkun. See it on IssueHunt
Most helpful comment
will fix soon