Skip to content

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