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

Add extra day to case contact date validation #6047

Merged

Conversation

thejonroberts
Copy link
Contributor

What github issue is this PR for, if any?

Addresses #5860

What changed, and why?

Addresses (temporarily?) issue where validation failed when user selected current day in browser.

Date could now be wrong (tomorrow) for those situations, however. Also changes Date.tomorrow to Time.zone.tomorrow to possibly to mitigate that.

How is this tested? (please write tests!) 💖💪

Current tests only. Cannot find a decent solution for setting capybara browser driver timezones to tests the difference between browser and server. Possibly could add request spec sending date as browser would send... but unsure how to account for TimeZone differences there?

Addresses (temporarily?) issue where validation failed when user selected current day in browser.
Date could be wrong for those situations, however.
Also uses Time.zone.tomorrow vs Date.tomorrow
@github-actions github-actions bot added the ruby Pull requests that update Ruby code label Sep 20, 2024
Copy link
Collaborator

@elasticspoon elasticspoon left a comment

Choose a reason for hiding this comment

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

LGTM

@elasticspoon elasticspoon merged commit 0c5ba75 into rubyforgood:main Sep 25, 2024
17 checks passed
@thejonroberts thejonroberts deleted the contact-date-validation-quickfix branch September 25, 2024 00:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ruby Pull requests that update Ruby code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants