Skip to content

time_format: Determine year difference based on months passed#47687

Merged
MrSubidubi merged 1 commit intomainfrom
year-formatting
Jan 28, 2026
Merged

time_format: Determine year difference based on months passed#47687
MrSubidubi merged 1 commit intomainfrom
year-formatting

Conversation

@MrSubidubi
Copy link
Member

The inline git blame always calculated the difference in years for commits based solely upon the difference between the years and not actual time passed. This is currently somewhat unfortunate during January, as for all dates starting from 2024 and lower, we would show 2 years ago, even if the date was the 31st of December 2024.

This fixes/improves this to use the lower bound always instead, as I find this much more intuitive - we can probably look into even better formatting here at some other point.

Release Notes:

  • Fixed an issue where relative time deltas would sometimes show as n + 1 years instead of the actual n years.

@MrSubidubi MrSubidubi self-assigned this Jan 26, 2026
@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Jan 26, 2026
@MrSubidubi MrSubidubi merged commit 28a9da4 into main Jan 28, 2026
29 checks passed
@MrSubidubi MrSubidubi deleted the year-formatting branch January 28, 2026 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant