Skip to content

fix: allow dates after 1970 in range mode #1084

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

Merged
merged 1 commit into from
Mar 15, 2025
Merged

Conversation

sahilrajthapa
Copy link
Contributor

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

@Jasenkoo Jasenkoo merged commit 6e27d06 into Vuepic:main Mar 15, 2025
1 check passed
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
2 participants