mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-01-22 20:44:56 +00:00
Merge pull request #208 from digital-dreamer/rss-fix-time_t
RSS addition - fix for 32bit systems
This commit is contained in:
commit
d9dfa19c6f
@ -101,7 +101,7 @@ int generateRSS(string uri, string *output)
|
|||||||
postAuthor=messages[j].name_;
|
postAuthor=messages[j].name_;
|
||||||
postTitle="Direct Message from "+postAuthor;
|
postTitle="Direct Message from "+postAuthor;
|
||||||
postMsg=find_value(userArray[i].get_obj(),"text").get_str();
|
postMsg=find_value(userArray[i].get_obj(),"text").get_str();
|
||||||
time_t postTime(find_value(userArray[i].get_obj(),"time").get_int64());
|
Value postTime = find_value(userArray[i].get_obj(),"time");
|
||||||
|
|
||||||
Object item;
|
Object item;
|
||||||
item.push_back(Pair("time",postTime));
|
item.push_back(Pair("time",postTime));
|
||||||
@ -145,7 +145,7 @@ int generateRSS(string uri, string *output)
|
|||||||
postMsg = find_value(rt.get_obj(),"msg").get_str();
|
postMsg = find_value(rt.get_obj(),"msg").get_str();
|
||||||
}
|
}
|
||||||
|
|
||||||
time_t postTime(find_value(userpost,"time").get_int64());
|
Value postTime = find_value(userpost,"time");
|
||||||
|
|
||||||
Object item;
|
Object item;
|
||||||
item.push_back(Pair("time",postTime));
|
item.push_back(Pair("time",postTime));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user