Commit 29f1b692 authored by Thomas Edwards's avatar Thomas Edwards
Browse files

60s rollover fix for rounded timestamps

parent 913b185f
......@@ -266,6 +266,10 @@ std::string data_obs::get_time(std::string formatstr, bool rounded) const{
tm.tm_sec += 1;
// this can overflow the seconds (because of leapseconds) so use mktime
// to normalize
// TODO This may be slow, possibly better to use sprintf and fixed
// buffer length
std::ostringstream os;
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