Skip to content

Fix calendar-aligned elapsed durations - #376

Draft
francinelucca wants to merge 2 commits into
mainfrom
francinelucca-fix-relative-time-tests
Draft

Fix calendar-aligned elapsed durations#376
francinelucca wants to merge 2 commits into
mainfrom
francinelucca-fix-relative-time-tests

Conversation

@francinelucca

Copy link
Copy Markdown
Contributor

Summary

  • calculate whole month and year durations from calendar boundaries instead of fixed 30-day months
  • remove the resulting stray days from exact month and year anniversaries
  • include the regression cases from add test cases for superfluous days #263 and correct existing expectations that encoded the same bug

Fixes #262.

Testing

  • npm run build
  • full browser test suite (642 tests)

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 6d8328fd-448c-41bc-8426-102150ede25f
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 6d8328fd-448c-41bc-8426-102150ede25f
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.

Stray days added to duration

1 participant