zed/crates/media
Bennet Bo Fenner dc7e14f888
Respect user preferences when formatting timestamp (#7994)
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
2024-02-23 19:18:06 -07:00
..
src linux: various fixes across the crates to make it compile 2024-02-03 00:06:20 -08:00
build.rs Build media and live-kit in test-mode on non-MacOS (#6859) 2024-01-29 18:04:15 -08:00
Cargo.toml Respect user preferences when formatting timestamp (#7994) 2024-02-23 19:18:06 -07:00
LICENSE-APACHE chore: Add crate licenses. (#4158) 2024-01-23 16:56:22 +01:00