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

FIO-5566: Fixes an issue where deprication warning appears in the console when using Day component with dateFirst setting #5024

Merged
merged 5 commits into from
Jun 27, 2023

Conversation

alexandraRamanenka
Copy link
Contributor

@alexandraRamanenka alexandraRamanenka commented Jan 19, 2023

https://formio.atlassian.net/browse/FIO-5566
There was a change done 2 years ago that was rewriting minDate and maxDate settings from the ISO format (yyyy-mm-dd) to another (dd/mm/yyyy) when the dayFirst setting was turned on. But due to the other changes in min/max date validation, this fix caused other issues where a deprication warning was shown and min/max date setting were read wrongly (eg. 2000-03-01 is supposted to be 1 March, 2000, but it was read as 3 January, 2000 instead) that was leading to min/max date validations were not always working properly.

How has this PR been tested?

The test written for rewriting min/maxDate setting to other format was replaced with a test checking that ensures min/max date validations works properly

…sole when using Day component with dateFirst setting
Copy link
Contributor

@TanyaGashtold TanyaGashtold left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix failing tests

@alexandraRamanenka
Copy link
Contributor Author

image

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.

2 participants