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

fix(v1.6.0): Date validation not working in firefox #7618

Merged
merged 6 commits into from
Sep 25, 2024

Conversation

tumbledwyer
Copy link
Collaborator

JSON.stringify on a date that is already a string adds an extra set of quotes.
e.g "2012-12-12" becomes "'2012-12-12'"
When parsing as a date, Chrome is lenient and returns the correct date but FIrefox returns NaN and the validation returns the incorrect result.

Fixes: #7615

JSON.stringify on a date that is already a string adds an extra set of quotes. When parsing as a date, Chrome is lenient but FIrefox throws an error.

This comment has been minimized.

@tumbledwyer tumbledwyer changed the title fix: Date validation not working in firefox fix(v1.6.0): Date validation not working in firefox Sep 16, 2024
@Zangetsu101 Zangetsu101 added this to the v1.6.0 milestone Sep 17, 2024
@ocrvs-bot
Copy link
Collaborator

Your environment is deployed to https://fix-date-validation-in-firefox.opencrvs.dev.

@tumbledwyer tumbledwyer merged commit 2fc9c52 into develop Sep 25, 2024
35 of 39 checks passed
@tumbledwyer tumbledwyer deleted the fix-date-validation-in-firefox branch September 25, 2024 11:14
github-actions bot pushed a commit that referenced this pull request Sep 25, 2024
tumbledwyer added a commit that referenced this pull request Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Date validation doesn't work correctly in Firefox
4 participants