# git_graph: Show time in commit details \(\#62679\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 33375c34b9301dd850b0e6d9781fd00acace6953

Requested commit: 33375c34b9301dd850b0e6d9781fd00acace6953

Commit: 33375c34b9301dd850b0e6d9781fd00acace6953

Tree: 273469f8758dd1e88c4a6841267b1376ce9a634f

Author: Dmitry Ivanishkin

Committer: GitHub

## Message

```
git_graph: Show time in commit details (#62679)

# Objective

The Git Graph list shows the full commit timestamp in its constrained
date column, while the more spacious commit details view only shows the
calendar date. Include the time in the details view so it does not
provide less information than the graph itself.

## Solution

Reuse the existing `format_timestamp` helper from the Git Graph `Date`
column when rendering the selected commit details. This gives both views
the same local date and time format without a separate formatting path.

## Testing

- `cargo check -p git_ui`

## Self-Review Checklist:

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

---

Release Notes:

- Improved Git Graph commit details to show the same full commit
timestamp as the `Date` column.

Co-authored-by: Kirill Bulatov <kirill@zed.dev>
```

## Parents

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

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