summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/utils.cpp
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2013-07-24 23:10:31 +0000
committerRobert Pösel <robyer@seznam.cz>2013-07-24 23:10:31 +0000
commit4597c090d2110f5e49db81e32921dad1b382f117 (patch)
treefcc8189591baf42e19d8810885c75d0586f6dce6 /protocols/FacebookRM/src/utils.cpp
parentb48997b7f4576a8a264574dbe038fadb5111f649 (diff)
Facebook: fixes
- fixed ghosts contacts (due to wrongly accessing json array) - fixed freeing parsed json data - fixed deleting item from map while iterating - fixed timestamp values from facebook - reverted back previously reverted fix git-svn-id: http://svn.miranda-ng.org/main/trunk@5477 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/utils.cpp')
-rw-r--r--protocols/FacebookRM/src/utils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/FacebookRM/src/utils.cpp b/protocols/FacebookRM/src/utils.cpp
index 6851154a89..f0cae3be7e 100644
--- a/protocols/FacebookRM/src/utils.cpp
+++ b/protocols/FacebookRM/src/utils.cpp
@@ -53,7 +53,7 @@ std::string utils::time::mili_timestamp()
return timestamp;
}
-DWORD utils::time::fix_timestamp(double mili_timestamp)
+DWORD utils::time::fix_timestamp(unsigned __int64 mili_timestamp)
{
// If it is really mili_timestamp
if (mili_timestamp > 100000000000) {
@@ -71,7 +71,7 @@ DWORD utils::conversion::to_timestamp(std::string data)
return timestamp;
}
-struct tm *utils::conversion::fbtime_to_timeinfo(double timestamp) {
+struct tm *utils::conversion::fbtime_to_timeinfo(unsigned __int64 timestamp) {
time_t time = utils::time::fix_timestamp(timestamp);
return localtime(&time);
}