diff options
author | George Hazan <ghazan@miranda.im> | 2019-05-27 13:28:47 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-05-27 13:28:47 +0300 |
commit | 3a85dd706f5a03164f402f7d350f03bba5e6f764 (patch) | |
tree | 7d31c044733d30f5364829a6e2d77f1ec122866f /plugins/Import | |
parent | 8cfc672359da10548d4984bb5223d8ca878754f6 (diff) |
fixes #1966 (Import: wrong timestamps when import from QIP2012)
Diffstat (limited to 'plugins/Import')
-rw-r--r-- | plugins/Import/src/patterns.cpp | 2 | ||||
-rw-r--r-- | plugins/Import/src/stdafx.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/plugins/Import/src/patterns.cpp b/plugins/Import/src/patterns.cpp index 511426b675..3c37bebce1 100644 --- a/plugins/Import/src/patterns.cpp +++ b/plugins/Import/src/patterns.cpp @@ -564,7 +564,7 @@ public: dbei->flags = DBEF_READ | DBEF_UTF; if (pMsg[0x1A] != 0) dbei->flags |= DBEF_SENT; - dbei->timestamp = RLInteger(&pMsg[0x12]); + dbei->timestamp = TimeZone_ToLocal(RLInteger(&pMsg[0x12])); dbei->cbBlob = RLWord(&pMsg[m_iMsgHeaderSize - 2]); dbei->pBlob = (PBYTE)mir_alloc(dbei->cbBlob + 1); memcpy(dbei->pBlob, pMsg + m_iMsgHeaderSize, dbei->cbBlob); diff --git a/plugins/Import/src/stdafx.h b/plugins/Import/src/stdafx.h index aa53aae8fb..027852cd35 100644 --- a/plugins/Import/src/stdafx.h +++ b/plugins/Import/src/stdafx.h @@ -45,6 +45,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include <m_metacontacts.h>
#include <m_netlib.h>
#include <m_protosvc.h>
+#include <m_timezones.h>
#include "../../../libs/Pcre16/src/pcre.h"
|