diff --git a/3rd-party/date/date.h b/3rd-party/date/date.h index 5ca2ff3e..5bb51db5 100644 --- a/3rd-party/date/date.h +++ b/3rd-party/date/date.h @@ -7577,7 +7577,7 @@ from_stream(std::basic_istream& is, const CharT* fmt, } } } - if (neg) + if (neg && !is.fail()) toff = -toff; checked_set(temp_offset, toff, not_a_offset, is); command = nullptr;