From d04b715a5d999e4744b828083aa5905e04dc9299 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 17 Aug 2018 18:44:12 +0300 Subject: export/import with human readable timestamps according to #1490 --- src/mir_core/src/timezones.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/mir_core') 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; -- cgit v1.2.3