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 duplication of month in the MonthSelector in Country Risk #306

Merged
merged 1 commit into from
Nov 30, 2023

Conversation

frozenhelium
Copy link
Member

@frozenhelium frozenhelium commented Nov 30, 2023

  • Add a util to add number of months to date
  • Reset date before performing month arithmetics

Problem statement:

Consider the example: 2023-11-30 + 3 months

Expected output: 2024-02-29

Actual output: 2024-03-01

- Add a util to add num of months to date
- Reset date before performing month arithematic
@samshara samshara merged commit 2e4c7f0 into develop Nov 30, 2023
6 checks passed
@frozenhelium frozenhelium deleted the fix/month-arithematic branch November 30, 2023 08:15
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.

3 participants