mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-22 06:13:14 -07:00
Change comment
This commit is contained in:
parent
b733497ea1
commit
620c253307
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ DateCalculatorViewModel::DateCalculatorViewModel() :
|
||||||
m_dateCalcEngine = make_shared<DateCalculationEngine>(localizationSettings.GetCalendarIdentifier());
|
m_dateCalcEngine = make_shared<DateCalculationEngine>(localizationSettings.GetCalendarIdentifier());
|
||||||
// Initialize dates of DatePicker controls to today's date
|
// Initialize dates of DatePicker controls to today's date
|
||||||
auto calendar = ref new Calendar();
|
auto calendar = ref new Calendar();
|
||||||
// We force the timezone to UTC, to be sure to not being affected by Daylight Saving Time
|
// We force the timezone to UTC, in order to avoid being affected by Daylight Saving Time
|
||||||
// when we calculate the difference between 2 dates.
|
// when we calculate the difference between 2 dates.
|
||||||
calendar->ChangeTimeZone("UTC");
|
calendar->ChangeTimeZone("UTC");
|
||||||
auto today = calendar->GetDateTime();
|
auto today = calendar->GetDateTime();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue