Commit d357d57e authored by Cédric Traizet's avatar Cédric Traizet
Browse files

BUG: Remove the decimal part separator for time points with an integer number of seconds

parent aefc1ce3
Pipeline #9154 passed with stages
in 81 minutes and 9 seconds
......@@ -56,6 +56,12 @@ std::ostream & TimePoint::Display(std::ostream & os) const
// Remove the trailing zeros in the output.
dateStr.erase(dateStr.find_last_not_of('0') + 1, std::string::npos);
// Remove the decimal part separator for time points with an integer number of seconds
if (dateStr.back() == '.')
{
dateStr.pop_back();
}
// Add the UTC time identifier
os << dateStr << "Z";
return os;
......
Markdown is supported
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