summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/FacebookRM/src/utils.cpp')
-rw-r--r--protocols/FacebookRM/src/utils.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/protocols/FacebookRM/src/utils.cpp b/protocols/FacebookRM/src/utils.cpp
index a7d22d441d..46c56cafd1 100644
--- a/protocols/FacebookRM/src/utils.cpp
+++ b/protocols/FacebookRM/src/utils.cpp
@@ -71,6 +71,11 @@ DWORD utils::conversion::to_timestamp(std::string data)
return timestamp;
}
+struct tm *utils::conversion::fbtime_to_timeinfo(double timestamp) {
+ time_t time = utils::time::fix_timestamp(timestamp);
+ return localtime(&time);
+}
+
std::string utils::conversion::to_string(void* data, WORD type)
{
std::stringstream out;