Adobe-Runtime-Support
Adobe-Runtime-Support copied to clipboard
[Feature Request][Android][Linux] `TimeZone::displayName` change
Feature Description
In some cases applications (especially time-sensitive) should know TimeZone localized (or human readable) "display name".
Right now AIR for Windows using TimeZone::displayName return human readable value - thats ok. But for Android it return id (seems https://developer.android.com/reference/java/util/TimeZone#getID()).
Didn't test with other platforms.
My opinion - AIR for Android with TimeZone::displayName should return "display name" (https://developer.android.com/reference/java/util/TimeZone#getDisplayName()). Similar to Windows.
And with some new property should return "unique key" https://github.com/airsdk/Adobe-Runtime-Support/issues/3090.
It necessary to work with time zones using native extension.
For example, right now for Android TimeZone::displayName return:
Brazil/East
What I would like to be return from TimeZone::displayName:
Brasilia Standard Time (Sao Paulo) (or localized version which is ok)
Related issues: https://github.com/airsdk/Adobe-Runtime-Support/issues/3090 https://github.com/airsdk/Adobe-Runtime-Support/issues/2610
Known Workarounds
Write own native extension to work with time zones.
The same related to Linux. Here how it works with .NET for Linux: https://github.com/dotnet/runtime/issues/61210#issuecomment-961294063