Commit aebe73e5 authored by Francis Dupont's avatar Francis Dupont
Browse files

[3944] Fixed data formatting

parent f7aac578
......@@ -20,8 +20,10 @@ std::string
isc::util::ptimeToText(boost::posix_time::ptime t) {
boost::gregorian::date d = t.date();
std::stringstream s;
s << d.year() << "-" << d.month() << "-" << d.day();
s << " " << durationToText(t.time_of_day());
s << d.year()
<< "-" << std::setw(2) << std::setfill('0') << d.month().as_number()
<< "-" << std::setw(2) << std::setfill('0') << d.day()
<< " " << durationToText(t.time_of_day());
return (s.str());
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment