diff options
author | George Hazan <george.hazan@gmail.com> | 2015-06-19 16:19:57 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-06-19 16:19:57 +0000 |
commit | d55f17dea8734cfb458fd8fcbac684d141b181af (patch) | |
tree | 4c6d8ea7526b92f89c22b9d299bf01f8278072c8 /plugins/UserInfoEx | |
parent | 4a67a2dabbdf4aefbe729779f3be84177bbe9274 (diff) |
various quirks during MS_DB_TIME_TIMESTAMPTOSTRINGT calls
git-svn-id: http://svn.miranda-ng.org/main/trunk@14265 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/UserInfoEx')
-rw-r--r-- | plugins/UserInfoEx/src/ctrl_tzcombo.cpp | 20 | ||||
-rw-r--r-- | plugins/UserInfoEx/src/ctrl_tzcombo.h | 2 |
2 files changed, 3 insertions, 19 deletions
diff --git a/plugins/UserInfoEx/src/ctrl_tzcombo.cpp b/plugins/UserInfoEx/src/ctrl_tzcombo.cpp index ab1fc0064c..7159718a51 100644 --- a/plugins/UserInfoEx/src/ctrl_tzcombo.cpp +++ b/plugins/UserInfoEx/src/ctrl_tzcombo.cpp @@ -273,23 +273,7 @@ void CTzCombo::OnChangedByUser(WORD wChangedMsg) *
* @return nothing
**/
-void CTzCombo::GetTime(LPTSTR szTime, WORD cchTime)
+void CTzCombo::GetTime(LPTSTR szTime, int cchTime)
{
- //use new core tz interface
- if (tmi.printDateTime) {
- tmi.printDateTime((HANDLE)ComboBox_GetItemData(_hwnd, _curSel), _T("t"), szTime, cchTime, 0);
- }
- //fallback use old UIEX method
- else {
- const CTimeZone *pTimeZone = (CTimeZone*)ComboBox_GetItemData(_hwnd, _curSel);
- if (PtrIsValid(pTimeZone)) {
- MTime now;
- TIME_ZONE_INFORMATION tzi = *pTimeZone;
-
- now.GetTimeUTC();
- now.UTCToTzSpecificLocal(&tzi);
- now.TimeFormat(szTime, cchTime);
- }
- else mir_tstrcpy(szTime, _T("--:--"));
- }
+ tmi.printDateTime((HANDLE)ComboBox_GetItemData(_hwnd, _curSel), _T("t"), szTime, cchTime, 0);
}
diff --git a/plugins/UserInfoEx/src/ctrl_tzcombo.h b/plugins/UserInfoEx/src/ctrl_tzcombo.h index 08e5ef092d..4402a54375 100644 --- a/plugins/UserInfoEx/src/ctrl_tzcombo.h +++ b/plugins/UserInfoEx/src/ctrl_tzcombo.h @@ -50,7 +50,7 @@ public: virtual void OnApply(MCONTACT hContact, LPCSTR pszProto);
virtual void OnChangedByUser(WORD wChangedMsg);
- void GetTime(LPTSTR szTime, WORD cchTime);
+ void GetTime(LPTSTR szTime, int cchTime);
};
#endif /* _UI_CTRL_TZ_COMBO_INCLUDE_ */
\ No newline at end of file |