diff options
author | George Hazan <ghazan@miranda.im> | 2018-08-17 18:44:12 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-08-17 18:44:12 +0300 |
commit | d04b715a5d999e4744b828083aa5905e04dc9299 (patch) | |
tree | efa5c54528e4815c8fcd2342c0f9c39ac5056802 /src/mir_core | |
parent | e5381d4e4b8e5657d9e7a275e293f2a42f7d74d8 (diff) |
export/import with human readable timestamps according to #1490
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;
|