-
Notifications
You must be signed in to change notification settings - Fork 182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support retrieval of the host system time zone as icu_timezone::CustomTimeZone #3059
Comments
We have I'm not sure this method should be tz-only though. Maybe we should have |
Is our In general, though, of the system information, BCP47 does not encapsulate the short date format that is user-settable on Microsoft and Apple systems. It's unclear to me if actual use cases go beyond overriding the locale default to yyyy-MM-dd. That is, it's unclear to me if a boolean flag (to force yyyy-MM-dd) as a |
@zbraniecki for discussion of retrieval of preferences from the OS |
Discuss with: Optional: |
The discussion should center around the general location of the code and its behavior. Details of API should be proposed by the person who takes this issue. |
Discussion in the ICU4X-WG call:
|
Some discussion:
|
Instantiating an
icu_timezone::CustomTimeZone
that represents the current time zone of the host system is an operation that is likely to be commonly needed by apps while requiring special expertise (as well as access to alias data) to implement correctly. Therefore, it would be natural for ICU4X to provide this operation.AFAICT, ICU4C provides this but both Chromium and Firefox work around https://unicode-org.atlassian.net/browse/ICU-13694 , so ICU4X should be written not to need a workaround.
(Since this operation is inherently both operating system-dependent and operating system-specific, it obviously can't be an inseparable part of
icu_timezone
but either needs to be omissible using cargo features or needs to be in its own crate so thaticu_timezone
continues to work in a mere core+alloc context.)The text was updated successfully, but these errors were encountered: