Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: allow dates after 1970 in range mode #1084

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sahilrajthapa
Copy link

Describe your changes

Date-fns v4.1.0 treats null as 01/01/1970 (reference), which changes the behavior compared to previous versions. To maintain the same behavior as before, we can pass undefined instead of null. In this change, null is replaced with undefined while initializing parsedDateTwo.

Issue ticket number and link

Fixes #1082

Checklist before requesting a review

  • I have performed a self-review of my code
  • I have ensured that unit tests pass without errors
  • If it is a new feature, I have added a new unit test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to enter a date past 1970 with the text-input in range mode
1 participant