# linux: Implement local time zone support \(\#14610\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 013c9f0420307e1a71c54c9d05adedc04839fc78

Requested commit: 013c9f0420307e1a71c54c9d05adedc04839fc78

Commit: 013c9f0420307e1a71c54c9d05adedc04839fc78

Tree: 24507afb2b2622f25997bbee8b5d58a959fa2dfd

Author: apricotbucket28

Committer: GitHub

## Message

```
linux: Implement local time zone support (#14610)

I decided to remove the GPUI APIs since `chrono` already provides this
functionality, and is already been used for this purpose in other parts
of the code (e.g.
[here](https://github.com/zed-industries/zed/blob/80402a684066628793695d9303979ad993803740/crates/zed/src/main.rs#L756)
or
[here](https://github.com/zed-industries/zed/blob/80402a684066628793695d9303979ad993803740/crates/ui/src/utils/format_distance.rs#L258))

These usages end up calling the `time_format` crate, which takes in a
`UtcOffset`. It's probably cleaner to rewrite the crate to take in
`chrono` types, but that would require rewriting most of the code there.

Release Notes:

- linux: Use local time zone in chat and Git blame
```

## Parents

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

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