From bf37d6655a27cc3ea5af5412c9717596c9d1c30f Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 19 Jun 2015 18:18:13 +0000 Subject: timezone api migrated to mir_core git-svn-id: http://svn.miranda-ng.org/main/trunk@14266 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Popup/src/headers.h | 1 + plugins/Popup/src/popup_wnd2.cpp | 12 +++--------- 2 files changed, 4 insertions(+), 9 deletions(-) (limited to 'plugins/Popup') diff --git a/plugins/Popup/src/headers.h b/plugins/Popup/src/headers.h index ce6142318a..56b8d1b625 100644 --- a/plugins/Popup/src/headers.h +++ b/plugins/Popup/src/headers.h @@ -83,6 +83,7 @@ http://miranda-ng.org/distr/ #include #include #include +#include #include #include diff --git a/plugins/Popup/src/popup_wnd2.cpp b/plugins/Popup/src/popup_wnd2.cpp index 2d45ac3553..f1183f6dd4 100644 --- a/plugins/Popup/src/popup_wnd2.cpp +++ b/plugins/Popup/src/popup_wnd2.cpp @@ -751,16 +751,10 @@ void PopupWnd2::updateData(POPUPDATA2 *ppd) m_lpzSkin = mir_a2t(ppd->lpzSkin); if (m_options->DisplayTime) { - if (ppd->dwTimestamp) { - DBTIMETOSTRINGT dbtts; - dbtts.szFormat = _T("t"); - dbtts.szDest = m_time; - dbtts.cbDest = SIZEOF(m_time); - CallService(MS_DB_TIME_TIMESTAMPTOSTRINGT, (WPARAM)ppd->dwTimestamp, (LPARAM)&dbtts); - } - else { + if (ppd->dwTimestamp) + TimeZone_ToStringT(ppd->dwTimestamp, _T("t"), m_time, SIZEOF(m_time)); + else GetTimeFormat(LOCALE_USER_DEFAULT, 0, NULL, _T("HH':'mm"), m_time, SIZEOF(m_time)); - } } else m_time[0] = 0; -- cgit v1.2.3