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

BUG: remove UTC time identifier from the input istream after time point parsing, if it exists

parent 0ed4f6d6
......@@ -64,6 +64,13 @@ std::ostream & TimePoint::Display(std::ostream & os) const
std::istream & TimePoint::Read(std::istream & is, const std::string & format)
{
date::from_stream(is, format.c_str(), m_Time);
// Remove the UTC time identifier from the input istream, if it exists.
if (!is.eof() && is.peek() == 'Z')
{
is.get();
}
return is;
}
......
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