# time_format: Show compound "N years, M months ago" for blame entries \(\#57973\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/ec64ba3e6904459ef824e9a02659776279d6cf6d)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: ec64ba3e6904459ef824e9a02659776279d6cf6d

Requested commit: ec64ba3e6904459ef824e9a02659776279d6cf6d

Commit: ec64ba3e6904459ef824e9a02659776279d6cf6d

Tree: 97bd50668e29b997b92fcc7ba1d51e0c9936fc95

Author: Lee ByeongJun

Committer: GitHub

## Message

```
time_format: Show compound "N years, M months ago" for blame entries (#57973)

The relative date format introduced in #47687 floors to whole years, so
a commit from 22 months ago is shown as "1 year ago". It would be better
to align with `git blame`'s own behavior so it can display timestamps
like "1 year, 10 months ago".

reference:
https://github.com/git/git/blob/c69baaf57ba26cf117c2b6793802877f19738b0d/date.c#L189-L205

Self-Review Checklist:

- [X] I've reviewed my own diff for quality, security, and reliability
- [ ] Unsafe blocks (if any) have justifying comments
- [ ] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [X] Tests cover the new/changed behavior
- [ ] Performance impact has been considered and is acceptable

Closes #57907

Release Notes:

- Fixed inaccurate humanized date in git blame, e.g. a commit from 22
months ago no longer shows as "1 year ago"
```

## Parents

- [b3d93d4474f77a578d617abaa57aa20a24a7ff7a](https://git.cafe/gitcafe/zed/commit/b3d93d4474f77a578d617abaa57aa20a24a7ff7a?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/ec64ba3e6904459ef824e9a02659776279d6cf6d?format=markdown)
