summaryrefslogtreecommitdiff
path: root/include/m_timezones.h
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2022-06-16 12:57:05 +0300
committerGeorge Hazan <ghazan@miranda.im>2022-06-16 12:57:05 +0300
commit88998a47b210daa8006844f419f66a4e3dc23e20 (patch)
treec0a82377f92c70b0811f24ad2dcd75704f79f982 /include/m_timezones.h
parent751824c60f37e2c268fbd54deba8fccc30034436 (diff)
fix for processing our own time zones
Diffstat (limited to 'include/m_timezones.h')
-rw-r--r--include/m_timezones.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/m_timezones.h b/include/m_timezones.h
index 4f4d49ca2b..5fc78c41d0 100644
--- a/include/m_timezones.h
+++ b/include/m_timezones.h
@@ -77,20 +77,20 @@ __forceinline int printTimeStampByContact(MCONTACT hContact, mir_time ts, LPCTST
}
#ifdef _MSC_VER
-__forceinline LPTIME_ZONE_INFORMATION getTziByContact(MCONTACT hContact)
+__forceinline LPTIME_ZONE_INFORMATION getTziByContact(MCONTACT hContact, uint32_t dwFlags = 0)
{
- return TimeZone_GetInfo(TimeZone_CreateByContact(hContact, nullptr, 0));
+ return TimeZone_GetInfo(TimeZone_CreateByContact(hContact, nullptr, dwFlags));
}
-__forceinline int getTimeZoneTimeByContact(MCONTACT hContact, SYSTEMTIME *st)
+__forceinline int getTimeZoneTimeByContact(MCONTACT hContact, SYSTEMTIME *st, uint32_t dwFlags = 0)
{
- return TimeZone_GetTimeZoneTime(TimeZone_CreateByContact(hContact, nullptr, 0), st);
+ return TimeZone_GetTimeZoneTime(TimeZone_CreateByContact(hContact, nullptr, dwFlags), st);
}
#endif
-__forceinline mir_time timeStampToTimeZoneTimeStampByContact(MCONTACT hContact, mir_time ts)
+__forceinline mir_time timeStampToTimeZoneTimeStampByContact(MCONTACT hContact, mir_time ts, uint32_t dwFlags = 0)
{
- return TimeZone_UtcToLocal(TimeZone_CreateByContact(hContact, nullptr, 0), ts);
+ return TimeZone_UtcToLocal(TimeZone_CreateByContact(hContact, nullptr, dwFlags), ts);
}
#endif