Loading plugins/content/content.cpp +6 −1 Changes for plugins/content/content.cpp: 6 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -64,10 +64,15 @@ namespace blogi { sql="SELECT content.id,content.created FROM content;"; int ncount=Args->database[tid]->exec(sql,res); for(int i=0; i<ncount; ++i){ #ifndef FreeBSD std::chrono::year_month_day cdate; std::stringstream ss(res[i][1]); std::chrono::from_stream(ss, "%Y-%m-%d", cdate); #else date::year_month_day cdate; std::stringstream ss(res[i][1]); date::from_stream(ss, "%Y-%m-%d", cdate); #endif if (ss.fail()) { std::cerr << "Parsing failed for date: " << res[i][1] << std::endl; continue; // Skip this entry Loading Loading
plugins/content/content.cpp +6 −1 Changes for plugins/content/content.cpp: 6 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -64,10 +64,15 @@ namespace blogi { sql="SELECT content.id,content.created FROM content;"; int ncount=Args->database[tid]->exec(sql,res); for(int i=0; i<ncount; ++i){ #ifndef FreeBSD std::chrono::year_month_day cdate; std::stringstream ss(res[i][1]); std::chrono::from_stream(ss, "%Y-%m-%d", cdate); #else date::year_month_day cdate; std::stringstream ss(res[i][1]); date::from_stream(ss, "%Y-%m-%d", cdate); #endif if (ss.fail()) { std::cerr << "Parsing failed for date: " << res[i][1] << std::endl; continue; // Skip this entry Loading