mirror of
https://github.com/HowardHinnant/date.git
synced 2025-08-05 21:54:27 +02:00
If %I is used without %p, mark the ambiguity with failbit
This commit is contained in:
@@ -7845,6 +7845,8 @@ from_stream(std::basic_istream<CharT, Traits>& is, const CharT* fmt,
|
|||||||
goto broken;
|
goto broken;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else // I is ambiguous, AM or PM?
|
||||||
|
goto broken;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (H != not_a_hour)
|
if (H != not_a_hour)
|
||||||
|
Reference in New Issue
Block a user