diff options
-rw-r--r-- | src/modules/utils/timezones.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/utils/timezones.cpp b/src/modules/utils/timezones.cpp index 9db7e89fa7..bd37f53ef5 100644 --- a/src/modules/utils/timezones.cpp +++ b/src/modules/utils/timezones.cpp @@ -168,7 +168,7 @@ static HANDLE timeapiGetInfoByName(LPCTSTR tszName, DWORD dwFlags) static HANDLE timeapiGetInfoByContact(MCONTACT hContact, LPCSTR szModule, DWORD dwFlags)
{
- if (hContact == NULL)
+ if (hContact == NULL && szModule == NULL)
return (dwFlags & (TZF_DIFONLY | TZF_KNOWNONLY)) ? NULL : &myInfo.myTZ;
if (szModule == NULL) szModule = "UserInfo";
|