diff options
author | Robert Pösel <robyer@seznam.cz> | 2014-12-21 14:37:38 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2014-12-21 14:37:38 +0000 |
commit | 310cdd11d658f232ab9b05a7b39cc9c3d9a00436 (patch) | |
tree | f94ccec81ed18054bf2fcafecfef29162a96c072 /protocols/FacebookRM/src/process.cpp | |
parent | 1143653f5936f4f4ea97e0d0bd863b79385004e1 (diff) |
Facebook: Use correct (= server) timestamp for sent messages
- used only when "use local time for messages" isn't enabled
- also it probably doesn't work for StdMsg (SRMM) plugin
git-svn-id: http://svn.miranda-ng.org/main/trunk@11555 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/process.cpp')
-rw-r--r-- | protocols/FacebookRM/src/process.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/FacebookRM/src/process.cpp b/protocols/FacebookRM/src/process.cpp index c0e6f28ee2..4af8154cdd 100644 --- a/protocols/FacebookRM/src/process.cpp +++ b/protocols/FacebookRM/src/process.cpp @@ -578,13 +578,13 @@ void FacebookProto::SyncThreads(void*) if (ptrtimestamp != NULL) timestamp = ptrtimestamp; - unsigned __int64 time = _atoi64(timestamp.c_str()); + long long time = _atoi64(timestamp.c_str()); if (time > 100000000000) { time /= 1000; } - if (time < (unsigned) ::time(NULL) - 24 * 60 * 60) { + if (time < ::time(NULL) - 24 * 60 * 60) { time_t last = ::time(NULL) - 24 * 60 * 60; timestamp = utils::conversion::to_string((void*)&last, UTILS_CONV_TIME_T) + "000"; @@ -870,7 +870,7 @@ void FacebookProto::ProcessMessages(void* data) p->parse_messages(resp, &messages, &facy.notifications, inboxOnly); delete p; - bool local_timestamp = getBool(FACEBOOK_KEY_LOCAL_TIMESTAMP, 0); + bool local_timestamp = getBool(FACEBOOK_KEY_LOCAL_TIMESTAMP, DEFAULT_LOCAL_TIME); ReceiveMessages(messages, local_timestamp); |