Skip to content

Conversation

@gabrielseco
Copy link
Collaborator

This PR fixes date parsing in the DatePickerField component to correctly handle minDate values passed as ISO date strings.

  • Termination/hooks.tsx: Added minDate to prevent adding a termination in the past

Technical Details

The previous implementation using new Date(minDate) could lead to incorrect date interpretation due to timezone handling. Using date-fns's parse function with explicit format string ('yyyy-MM-dd') ensures consistent and reliable date parsing across different environments.

@gabrielseco gabrielseco self-assigned this Nov 3, 2025
@gabrielseco gabrielseco marked this pull request as ready for review November 3, 2025 17:58
@github-actions
Copy link
Contributor

github-actions bot commented Nov 3, 2025

Deploy preview for remote-flows ready!

✅ Preview
https://remote-flows-rl6sgi4gn-remotecom.vercel.app

Built with commit 90eb334.
This pull request is being automatically deployed with vercel-action

@gabrielseco gabrielseco requested a review from cammellos November 3, 2025 17:58
@github-actions
Copy link
Contributor

github-actions bot commented Nov 3, 2025

Deploy preview for remote-flows-example-app ready!

✅ Preview
https://remote-flows-example-nrbr1m7lz-remotecom.vercel.app

Built with commit 90eb334.
This pull request is being automatically deployed with vercel-action

@gabrielseco gabrielseco merged commit 30a4282 into main Nov 4, 2025
5 checks passed
@gabrielseco gabrielseco deleted the pbyr-3139-limit-provisional-start-date-to-make-the-mindate-today branch November 4, 2025 09:11
@gabrielseco gabrielseco mentioned this pull request Nov 4, 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.

3 participants