Skip to content

🐛 Use the today prop in isFutureDate/isPastDate calculations #51

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

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

Conversation

gabrielstellini
Copy link

Why these changes?

Today is not the same everywhere around the world - (unfortunately) timezones exist :D

This change allows you to pass the today object as a prop, and makes the isPast/isFuture function depend on it

How do we test?

Pass an arbitrary today value - it should effect the disabled dates in the datepicker

@gabrielstellini gabrielstellini changed the title 🐛 Use today prop for isFuture/isPast date calculations 🐛 Use the today prop for isFuture/isPast date calculations Apr 23, 2025
@gabrielstellini gabrielstellini changed the title 🐛 Use the today prop for isFuture/isPast date calculations 🐛 Use the today prop in the isFuture/isPast date calculations Apr 23, 2025
@gabrielstellini gabrielstellini changed the title 🐛 Use the today prop in the isFuture/isPast date calculations 🐛 Use the today prop in isFuture/isPast date calculations Apr 23, 2025
@gabrielstellini gabrielstellini changed the title 🐛 Use the today prop in isFuture/isPast date calculations 🐛 Use the today prop in isFutureDate/isPastDate calculations Apr 23, 2025
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.

1 participant