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

295 Fixup date truncation #296

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

295 Fixup date truncation #296

wants to merge 3 commits into from

Conversation

EthanMcQ-TMF
Copy link
Collaborator

Closes #295

πŸ‘©πŸ»β€πŸ’» What does this PR do?

  • Calculate monthly schedule all at once to prevent truncation

πŸ§ͺ How has/should this change been tested?

  • Add a unit test for monthly configs running through short months

πŸ’Œ Any notes for the reviewer?

πŸ“ƒ Documentation

No user facing changes

Copy link
Collaborator

@jmbrunskill jmbrunskill left a comment

Choose a reason for hiding this comment

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

Thanks Ethan!

I can't help but feel like it's crying out for an optimisation to get the difference in days/hours/months and then adjust based on that,b ut can definitely be in a future PR, and the original goal was to keep this logic simple so I like that you've kept it consistent.

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.

"End of month" schedules will break after a short month
2 participants