Skip to content

Conversation

@saifsultanc
Copy link
Contributor

Context

⛑️ Ticket(s): https://secure.helpscout.net/conversation/2725332347/72239

Summary

Issues with edge cases. For instance, if we had the selection as 31 October and then we chose the month of April. Since it cannot select 31st April, it is going to end up selection as 1st of May (outside our month selection of April). Likewise, 30 April and then selecting February would select 2nd March (for non-leap) and 1st March (for leap year). All these edge cases have been handled with a maxDay, so any date selection is capped to that max value.

BEFORE:
https://www.loom.com/share/cdf3a97e31684d3899311a24c6aeb6f6

AFTER:
https://www.loom.com/share/45ad6bb1f061409195bbc20910846c3e

…d an issue with edge cases like 29 February, 31 April etc.
@saifsultanc saifsultanc added the bug Something isn't working label Nov 5, 2024
@saifsultanc saifsultanc requested a review from spivurno November 5, 2024 06:16
…d an issue with edge cases like 29 February, 31 April etc.
@saifsultanc saifsultanc merged commit e85d0ef into master Jan 12, 2025
3 checks passed
@saifsultanc saifsultanc deleted the saif/fix/72239-fix-boundary-cases branch January 12, 2025 01:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Development

Successfully merging this pull request may close these issues.

3 participants