Search Issue Tracker
Duplicate
Votes
4
Found in
2017.1.0p1
Issue ID
934382
Regression
No
Time zone conversions fail on iOS, Android and WebGL devices when using the Experimental (.NET 4.6 Equivalent) runtime
.ToLocalTime() fails to convert time on iOS, Android and WebGL.
.ToLocalTime() works as expected on Mac and Windows standalone builds or when Scriptable Runtime version is set to Stable (.NET 3.5 Equivalent).
Steps to reproduce:
1. Open User's attached project (TimeZoneConversion.zip)
2. Build and Run scene on iOS, Android or WebGL
3. Check Console logs
Expected output: UTC: 7/24/2017 8:20:28 AM, local: 7/24/2017 11:20:28 AM
Actual output: UTC: 07/24/2017 08:23:33, local: 07/24/2017 08:23:33
Reproduced with: 2017.1.0p1.
Not reproduced with: 5.6 and earlier (no Experimental (.NET 4.6 Equivalent) feature)
Tested with: iPod 6th gen iOS 10.2.1, Samsung Galaxy S7 Android 6.0.1.
-
phila666
Oct 25, 2017 20:02
more specifically, it appears that all the timezone and datetime classes in .net 4.6 thing they are in UTC as their local zone, which becomes problematic is you are dealing with say, a native time picking object, which has the local timezone set correctly, so they do not agree.
-
phila666
Oct 25, 2017 19:58
Still broken on 2017.2 using .net 4.6
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
This is a duplicate of issue #943047