Adobe-Runtime-Support icon indicating copy to clipboard operation
Adobe-Runtime-Support copied to clipboard

[Feature Request][Android][Linux] `TimeZone::displayName` change

Open itlancer opened this issue 1 year ago • 1 comments

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.

itlancer avatar Feb 28 '24 12:02 itlancer

The same related to Linux. Here how it works with .NET for Linux: https://github.com/dotnet/runtime/issues/61210#issuecomment-961294063

itlancer avatar Sep 01 '24 13:09 itlancer