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
{{ message }}
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.
parser should accept only instances of LocalDate and reject JS Dates because we want to be sure that users are aware that passing as ISO date to LocalDate gives a different result than passing it to a Date.
Nevertheless, we should keep accepting instances of LocalDate so to give a way to easily clone a LocalDate
specs
parser should accept only undefined, instances of LocalDate and ISO dates:
add if (typeof value === 'undefined') to handle first case
replace instanceof Date with instanceof LocalDate
ISO dates should be already fine
misc
{optional: other useful info}
The text was updated successfully, but these errors were encountered:
requirements
parser should accept only instances of
LocalDate
and reject JSDate
s because we want to be sure that users are aware that passing as ISO date toLocalDate
gives a different result than passing it to aDate
.Nevertheless, we should keep accepting instances of
LocalDate
so to give a way to easily clone aLocalDate
specs
parser should accept only
undefined
, instances ofLocalDate
and ISO dates:if (typeof value === 'undefined')
to handle first caseinstanceof Date
withinstanceof LocalDate
misc
{optional: other useful info}
The text was updated successfully, but these errors were encountered: