Use macOS API to retrieve the local timezone

The `time` crate currently doesn't have a reliable way to get that.
In the future, `NSSystemTimeZoneDidChangeNotification` could be
used to keep the cached timezone up-to-date.

Co-Authored-By: Max Brunsfeld <max@zed.dev>
This commit is contained in:
Antonio Scandurra
2021-09-02 19:15:05 +02:00
co-authored by Max Brunsfeld
parent 3d4ff43f9e
commit f59e02cf25
7 changed files with 30 additions and 6 deletions
Generated
+1
View File
@@ -2187,6 +2187,7 @@ dependencies = [
"simplelog",
"smallvec",
"smol",
"time 0.3.2",
"tiny-skia",
"tree-sitter",
"usvg",