diff options
Diffstat (limited to 'src/mir_core')
-rw-r--r-- | src/mir_core/src/timezones.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mir_core/src/timezones.cpp b/src/mir_core/src/timezones.cpp index d005092352..990417a6dd 100644 --- a/src/mir_core/src/timezones.cpp +++ b/src/mir_core/src/timezones.cpp @@ -306,6 +306,9 @@ MIR_CORE_DLL(int) TimeZone_PrintDateTime(HANDLE hTZ, LPCTSTR szFormat, LPTSTR sz if (tz == nullptr && (dwFlags & (TZF_DIFONLY | TZF_KNOWNONLY)))
return 1;
+ if (tz == nullptr)
+ tz = &myInfo.myTZ;
+
SYSTEMTIME st;
if (TimeZone_GetTimeZoneTime(tz, &st))
return 1;
|