Search Issue Tracker
Fixed in 2019.3.X
Fixed in 2018.4.X, 2019.1.X, 2019.2.X
Votes
0
Found in
2017.4.0f1
2018.3.0a1
2018.4.0f1
2019.1.0a1
2019.1.0f2
2019.2.0a1
2019.3.0a1
Issue ID
1152381
Regression
No
[IL2CPP] System.Diagnostics.Stopwatch changes its Time when there is a change of System Time or Time Zone
To reproduce:
1. Download attached "stopwatch.unity.zip" project and open in Unity
2. Open "New Scene" scene
3. Build for iOS or macOS Standalone (IL2CPP)
4. Deploy the Xcode project to the iOS device or run Standalone Build
5. Observe that there two Timers
6. Change your Testing Environment Time or Time Zone
Expected Results: Two Timers does not change and stays the same
Actual Results: System.Diagnostics.Stopwatch changes when Time or Time Zone is changed - Increases or Decreases
Notes:
- This issue does not reproduce on Windows Editor and Standalone, macOS Editor and Android (IL2CPP)
- This issue happens only on iOS and macOS Standalone (IL2CPP)
- https://forum.unity.com/threads/no-monotonic-clock-on-il2cpp.540207/
- https://forum.unity.com/threads/monotone-crossplatform-clock.659752/#post-4416568
Tested with:
- iPhone XS, iOS: 12.0 - Reproduced
- iPhone 8 Plus, iOS: 12.0 - Reproduced
- iPhone 7 Plus, iOS: 12.0 - Reproduced
Reproduced on Unity 2017.4.0f1, 2017.4.26f1, 2018.3.14f1, 2018.4.0f1, 2019.1.2f1, 2019.2.0b1 and 2019.3.0a1
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- The Editor becomes unresponsive and memory allocation errors are spammed in the Console when Generating Lightning
- Crash on BatchApplyPropertiesFromSourceAssetDB when opening a specific project
- Scene view Camera cannot be moved with WASD/QE keys when the Right Mouse Button is held down and the Mouse is not moved
- Crash when calling default interface method from virtual method with same name
- [Android] Unity does not include the ".aab" extension for an AppBundle when it is built via script with the buildPlayerOptions.locationPathName = "AppName.apk" and EditorUserBuildSettings.buildAppBundle = true
Add comment