diff options
author | Sergey Bolhovskoy <elzorfox@ya.ru> | 2014-09-17 07:52:14 +0000 |
---|---|---|
committer | Sergey Bolhovskoy <elzorfox@ya.ru> | 2014-09-17 07:52:14 +0000 |
commit | 8a49a0916fa4903aa05e2f9a833de6f1535ebcd1 (patch) | |
tree | 7e7ef97b2f2f0c455c9a4f8be905c3b58ac41d16 /protocols/VKontakte/src/vk_thread.cpp | |
parent | 78390ccc676294d0fddce0dc9bb843b3d9fea8f5 (diff) |
VKontakte: Add ‘Use local time for received messages’ option
git-svn-id: http://svn.miranda-ng.org/main/trunk@10488 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/vk_thread.cpp')
-rw-r--r-- | protocols/VKontakte/src/vk_thread.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/protocols/VKontakte/src/vk_thread.cpp b/protocols/VKontakte/src/vk_thread.cpp index 7a68c79b52..a484ef5628 100644 --- a/protocols/VKontakte/src/vk_thread.cpp +++ b/protocols/VKontakte/src/vk_thread.cpp @@ -547,7 +547,8 @@ void CVkProto::OnReceiveMessages(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pRe recv.flags |= PREF_CREATEREAD;
if (isOut)
recv.flags |= PREF_SENT;
- recv.timestamp = datetime;
+
+ recv.timestamp = m_bUseLocalTime?time(NULL):datetime;
recv.tszMessage = ptszBody;
recv.lParam = isOut;
recv.pCustomData = szMid;
|