airsdk / Adobe-Runtime-Support

Report, track and discuss issues in Adobe AIR. Monitored by Adobe - and HARMAN - and maintained by the AIR community.
200 stars 11 forks source link

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

Open itlancer opened 6 months ago

itlancer commented 6 months ago

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 commented 2 weeks ago

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