Search Issue Tracker

In Progress

Fixed in 2022.3.23f1, 2023.2.20f1, 6000.0.0b14

Votes

0

Found in

2022.3.22f1

2023.2.14f1

6000.0.0b13

7000.0.0a1

Issue ID

UUM-67254

Regression

No

[Mobile] TimeZone.CurrentTimeZone returns UTC 0 when Peru time zone (-5 UTC) is set on mobile devices

--

-

Steps to reproduce:
1. Open the attached user's project "TimeZone test project.zip"
2. Switch to Android Platform, Development build and Autoconnect Profiler enabled
3. Make sure UTC -5 (Peru) is set on the Android Device time zone settings
4. Build for Android
5. Observe UTC offset returned by the application in the Console Window

Expected results: "UTC offset: -05:00:00" is returned and printed
Actual result: "UTC offset: 00:00:00" is returned and printed

Reproducible on: 2022.3.22f1, 2023.2.14f1, 6000.0.0b13
Not reproducible on: 2021.3.36f1
Could not test below 2022.2.0f1 and locate the FAV due to various gradle/ADB errors after downgrading

Reprudicble on these devices:
VLNQA00528 - HMD Global Nokia G20 (Nokia G20), CPU: Mediatek MT6765G Helio G35 (12 nm), GPU: PowerVR Rogue GE8320, OS: 13
VLNQA00423 - Google Pixel 3 (Pixel 3), CPU: Snapdragon 845, GPU: Adreno 630, OS: 9
VLNQA00422 - Galaxy S21 Ultra 5G (SM-G998B), CPU: Exynos 2100, GPU: Mali-G78, OS: 11
VLNQA00381 - Xiaomi Redmi Note 8 Pro (Redmi Note 8 Pro), CPU: MediaTek Helios G90T MT6785T, GPU: Mali-G76 MC4, OS: 9
VLNQA00202 - Samsung Galaxy Note 9 USA (SM-N9600), CPU: Snapdragon 845 SDM845, GPU: Adreno 630, OS: 9
iPhone 13 (iOS 15.0)
iPhone 12 mini (iOS 14.1)
iPad Air 4th Gen (iOS 15.2.1)

Testing Environment: Windows 11
Not reproducible on: No other environment tested

Notes:
-Issue reproduces with Peru, Afghanistan and Algeria time zones
-Does not reproduce in Editor when setting UTC -5 on Windows
-Does not reproduce on Windows Standalone Player

  1. Resolution Note (fix version 6000.0.0b14):

    Fixed issue where incorrect timezone would be reported on certain platforms due to an exception being thrown in the system libraries.

  2. Resolution Note (fix version 2023.2.20f1):

    Fixed issue where incorrect timezone would be reported on certain platforms due to an exception being thrown in the system libraries.

  3. Resolution Note (fix version 2022.3.23f1):

    Fixed issue where incorrect timezone would be reported on certain platforms due to an exception being thrown in the system libraries.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.