From 1bd4f1870c120d758662219ee6f170360b2fbcd0 Mon Sep 17 00:00:00 2001 From: Stephanie Anderl <46726333+sanderl@users.noreply.github.com> Date: Fri, 8 Feb 2019 15:33:00 -0800 Subject: [PATCH] Updated calendar strings to use the CalendarIdentifiers object --- src/CalcViewModel/Common/DateCalculator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CalcViewModel/Common/DateCalculator.cpp b/src/CalcViewModel/Common/DateCalculator.cpp index 22cd4ff..3e1ce9b 100644 --- a/src/CalcViewModel/Common/DateCalculator.cpp +++ b/src/CalcViewModel/Common/DateCalculator.cpp @@ -284,9 +284,9 @@ DateTime DateCalculationEngine::AdjustCalendarDate(Windows::Foundation::DateTime // It is not guaranteed that adding 1 year will always add 365 days in the Japanese Calendar. // To work around this quirk, we will change the calendar system to Gregorian before adding 1 year in the Japanese Calendar case only. // We will then return the calendar system back to the Japanese Calendar. - if (currentCalendarSystem == L"JapaneseCalendar") + if (currentCalendarSystem == CalendarIdentifiers::Japanese) { - m_calendar->ChangeCalendarSystem(L"GregorianCalendar"); + m_calendar->ChangeCalendarSystem(CalendarIdentifiers::Gregorian); } m_calendar->AddYears(difference);