Closed irongut closed 3 years ago
Most of these errors are because Xamarin Android doesn't include some calendars unless they are specifically added in Android Options. So the main problem is with the app. See irongut/EliteALD issue 286 for fix.
There is an issue with BgsTickService returning DateTime.MinValue
& Unknown
for the latest tick. This is probably because the Thai calendar uses a different initial year making it 2564 in 2021. DateTime values store the western date but String.Format
uses the Thai date. So the query url sent to phelbore.com will ask for data 543 years in the future! See query url.
Bug Report
EliteALD error reports include several exceptions related to dates from devices using Thai language settings. Exceptions have been seen from several services including Priorities, EDSM & Standings.
DateTime.Parse(System.String s) ArgumentNullException: Value cannot be null. Parameter name: s AppCenter #3972984053 AppCenter #2803695455
DateTimeFormatInfo.set_Calendar(System.Globalization.Calendar value) ArgumentOutOfRangeException: Not a valid calendar for the given culture. Parameter name: value AppCenter #1582563134 AppCenter #3618643846
Stack Trace
To Reproduce
Parse a DateTime from a string. Convert a DateTime to a string using
string.Format()
or equivalent code.Additional Context
Similar reports have been seen in the past for devices with Arabic language settings. Will require fixing in irongut/EliteALD as well as EDlib.
Linked To
irongut/EliteALD Issue 286 Errors with non-Western calendars.