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

tweak rounding rules for months #249

Merged
merged 1 commit into from
Feb 7, 2023
Merged

Conversation

keithamus
Copy link
Member

Following on from #245 which updated rounding rules for calendar years, this PR updates the rounding rules for calendar months and days. It uses the real calendar to determine how the days & months should be calculated, rather than a simpler rounding heuristic.

Currently on GitHub, timestamps from early Jan are marked as "last year" due to imprecise rounding. This will fix that. Closes #248

@keithamus keithamus requested a review from a team as a code owner February 7, 2023 14:35
@keithamus keithamus merged commit 244af66 into main Feb 7, 2023
@keithamus keithamus deleted the tweak-rounding-rules-for-months branch February 7, 2023 14:57
@stapelberg stapelberg mentioned this pull request Feb 18, 2023
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.

Not exactly sure of what, but something appears to be wrong?
2 participants