Skip to content

Commit 6b6c50d

Browse files
Initialize values in DateTimeInternal
1 parent c2b6a3c commit 6b6c50d

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

lib/Common/PlatformAgnostic/DateTimeInternal.h

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ namespace DateTime
6161
uint32 lastTimeZoneUpdateTickCount;
6262

6363
void UpdateTimeZoneInfo();
64-
UtilityPlatformData(): lastTimeZoneUpdateTickCount(0) { }
64+
UtilityPlatformData() : lastTimeZoneUpdateTickCount(0) { GetTimeZoneInformation(&timeZoneInfo); }
6565
};
6666

6767
class HiresTimerPlatformData
@@ -78,13 +78,14 @@ namespace DateTime
7878
bool fHiResAvailable;
7979

8080
HiresTimerPlatformData() :
81-
fInit(false),
8281
dBaseTime(0),
83-
baseMsCount(0),
84-
fHiResAvailable(true),
8582
dLastTime(0),
8683
dAdjustFactor(1),
87-
fReset(true)
84+
baseMsCount(0),
85+
freq(0),
86+
fReset(true),
87+
fInit(false),
88+
fHiResAvailable(true)
8889
{
8990
}
9091

0 commit comments

Comments
 (0)