Search Issue Tracker
By Design
Votes
0
Found in
2017.4.0f1
2018.2.14f1
2018.3.0a1
2019.1.0a1
Issue ID
1096807
Regression
No
[.NET 4.6] ArgumentOutOfRange exception when setting a non-gregorian CultureInfo.DateTimeFormat.Calendar
How to reproduce:
1. Open user-submitted project (TestDateTime2018.2.14) and 'SampleScene' scene
2. Enter Play Mode
3. Click on either of the two buttons
Expected result: a Korean/Japanese calendar is set and the current date is printed in the Console window
Actual result: "ArgumentOutOfRangeException: Not a valid calendar for the given culture." error is thrown
Reproducible with: 2017.4.18f1, 2018.3.1f1, 2019.1.0a13
Notes:
Does not reproduce with .NET 3.5
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
Resolution Note:
Behavior matches .net framework. The calendar you set must be part of the culture's OptionalCalendars list https://docs.microsoft.com/en-us/dotnet/api/system.globalization.cultureinfo.optionalcalendars?view=netframework-4.7.2