diff options
author | George Hazan <ghazan@miranda.im> | 2019-06-01 22:46:11 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-06-01 22:46:11 +0300 |
commit | 7bf15f76fee8866bd015637f0ff1f69c58b0ed41 (patch) | |
tree | 9e383162db512ad4258b214466061da505eeb25b /plugins/Import | |
parent | 80e0b065010ddd32632eb0e584a4c866d3c723a0 (diff) |
fixes #1966 (Import: wrong timestamps when import from QIP2012)
Diffstat (limited to 'plugins/Import')
-rw-r--r-- | plugins/Import/src/patterns.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Import/src/patterns.cpp b/plugins/Import/src/patterns.cpp index 3c37bebce1..951e9010ef 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 = TimeZone_ToLocal(RLInteger(&pMsg[0x12])); + dbei->timestamp -= TimeZone_ToLocal(RLInteger(&pMsg[0x12])) - dbei->timestamp; // deduct time zone offset from timestamp dbei->cbBlob = RLWord(&pMsg[m_iMsgHeaderSize - 2]); dbei->pBlob = (PBYTE)mir_alloc(dbei->cbBlob + 1); memcpy(dbei->pBlob, pMsg + m_iMsgHeaderSize, dbei->cbBlob); |