You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Inconsistencies where 0 is involved
For example:
constm1=dayjs('1970-07-05','YYYY-MM-DD').format('DD-MM-YYYY')// '05-07-1970'assert(dayjs('1970-00-00','YYYY-MM-DD').isValid(),"should this be valid?")constm2=dayjs('1970-00-00','YYYY-MM-DD').format('DD-MM-YYYY')// '30-11-1969'constm3=dayjs('0000-01-01','YYYY-MM-DD').format('DD-MM-YYYY')// '01-01-1900'
Expected behavior
I was surprised that this code was true
assert(dayjs('1970-00-00', 'YYYY-MM-DD').isValid(), "should this be valid?")
Is this a bug or expected behaviour?
Information
version - 1.8.23
os - osx
The text was updated successfully, but these errors were encountered:
Describe the bug
Inconsistencies where
0
is involvedFor example:
Expected behavior
I was surprised that this code was true
Is this a bug or expected behaviour?
Information
version - 1.8.23
os - osx
The text was updated successfully, but these errors were encountered: