summaryrefslogtreecommitdiff
path: root/plugins/Import/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-06-01 22:50:54 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-06-01 22:50:54 +0300
commitedbe898fc08a4f08995ef43c3c4fd6deb7673795 (patch)
tree1d66da7c05d6b34c6d319e7b9252430c24359933 /plugins/Import/src
parent7bf15f76fee8866bd015637f0ff1f69c58b0ed41 (diff)
more correct variant of deducting local time zone
Diffstat (limited to 'plugins/Import/src')
-rw-r--r--plugins/Import/src/patterns.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/Import/src/patterns.cpp b/plugins/Import/src/patterns.cpp
index 951e9010ef..9f28b50645 100644
--- a/plugins/Import/src/patterns.cpp
+++ b/plugins/Import/src/patterns.cpp
@@ -564,7 +564,8 @@ public:
dbei->flags = DBEF_READ | DBEF_UTF;
if (pMsg[0x1A] != 0)
dbei->flags |= DBEF_SENT;
- dbei->timestamp -= TimeZone_ToLocal(RLInteger(&pMsg[0x12])) - dbei->timestamp; // deduct time zone offset from timestamp
+ dbei->timestamp = RLInteger(&pMsg[0x12]);
+ dbei->timestamp -= TimeZone_ToLocal(dbei->timestamp) - 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);