# Refactor timestamp formatting in Git UI components to use \`chrono\` for local time calculations \(\#41005\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 5360dc150467473356a71de79c753575ddcb2b86

Requested commit: 5360dc150467473356a71de79c753575ddcb2b86

Commit: 5360dc150467473356a71de79c753575ddcb2b86

Tree: 109336a7d7153dc0ecb753e276a4a021c9d43de3

Author: Viraj Bhartiya

Committer: GitHub

## Message

```
Refactor timestamp formatting in Git UI components to use `chrono` for local time calculations (#41005)

- Updated `blame_ui.rs`, `branch_picker.rs`, `commit_tooltip.rs`, and
`commit_view.rs` to replace the previous timestamp formatting with
`chrono` for better accuracy in local time representation.
- Introduced `chrono::Local::now().offset().local_minus_utc()` to obtain
the local offset for timestamp formatting.

Closes #40878

Release Notes:
- Improved timestamp handling in various Git UI components for enhanced
user experience.
```

## Parents

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

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