mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-11 04:36:24 +00:00
This is a follow up to #7945. The current behaviour reads the locale and infers from that which type of time format should be used (12 hour/24 hour). However, in macOS you can override this behaviour, e.g. you can use en_US locale but still use the 24 hour clock format (Can be customized under Settings > General > Date & Format > 24-hour time). You can even customize the date format. This PR uses the macOS specific `CFDateFormatter` API, which outputs time format strings, that respect those settings. Partially fixes #7956 (as its not implemented for linux) Release Notes: - Added localization support for all macOS specific date and time configurations in chat
24 lines
386 B
TOML
24 lines
386 B
TOML
[package]
|
|
name = "media"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
publish = false
|
|
license = "Apache-2.0"
|
|
|
|
[lib]
|
|
path = "src/media.rs"
|
|
doctest = false
|
|
|
|
[dependencies]
|
|
anyhow.workspace = true
|
|
block = "0.1"
|
|
bytes = "1.2"
|
|
|
|
[target.'cfg(target_os = "macos")'.dependencies]
|
|
core-foundation.workspace = true
|
|
foreign-types = "0.5"
|
|
metal = "0.25"
|
|
objc = "0.2"
|
|
|
|
[build-dependencies]
|
|
bindgen = "0.65.1"
|