Workaround for missing GetCalendarSystem

This commit is contained in:
Jérôme Laban 2019-05-23 16:31:14 -04:00
commit f1bd3afbd0

View file

@ -137,7 +137,7 @@ namespace CalculatorApp
m_currencyTrailingDigits = NumberFormatInfo.CurrentInfo.CurrencyDecimalDigits; m_currencyTrailingDigits = NumberFormatInfo.CurrentInfo.CurrencyDecimalDigits;
m_currencySymbolPrecedence = ~(NumberFormatInfo.CurrentInfo.CurrencyPositivePattern) & 1; m_currencySymbolPrecedence = ~(NumberFormatInfo.CurrentInfo.CurrencyPositivePattern) & 1;
m_resolvedName = CultureInfo.CurrentCulture.Name; m_resolvedName = CultureInfo.CurrentCulture.Name;
m_calendarIdentifier = new Windows.Globalization.Calendar().GetCalendarSystem(); m_calendarIdentifier = ""; // new Windows.Globalization.Calendar().GetCalendarSystem();
m_firstDayOfWeek = (Windows.Globalization.DayOfWeek)CultureInfo.CurrentCulture.DateTimeFormat.FirstDayOfWeek; m_firstDayOfWeek = (Windows.Globalization.DayOfWeek)CultureInfo.CurrentCulture.DateTimeFormat.FirstDayOfWeek;
#endif #endif
} }