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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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
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.

1 participant