#include "../../include/freenet/trustlistxml.h"\r
\r
#include <Poco/DateTimeFormatter.h>\r
+#include <Poco/Timespan.h>\r
\r
#ifdef XMEM\r
#include <xmem.h>\r
\r
// get count of identities added in last 24 hours\r
st=m_db->Prepare("SELECT COUNT(*) FROM tblIdentity WHERE DateAdded>=?;");\r
+ now-=Poco::Timespan(1,0,0,0,0);\r
st.Bind(0,Poco::DateTimeFormatter::format(now,"%Y-%m-%d %H:%M:%S"));\r
st.Step();\r
if(st.RowReturned())\r
{\r
m_log->error("TrustListRequester::HandleAllData couldn't get count of identities added in last 24 hours");\r
}\r
+ now=Poco::DateTime();\r
\r
// parse file into xml and update the database\r
if(xml.ParseXML(std::string(data.begin(),data.end()))==true)\r