diff --git a/include/date/date.h b/include/date/date.h index 959cd5c..d4ca88c 100644 --- a/include/date/date.h +++ b/include/date/date.h @@ -7520,7 +7520,12 @@ from_stream(std::basic_istream& is, const CharT* fmt, { auto c = static_cast(Traits::to_char_type(ic)); if (c == '-') + { neg = true; + (void)is.get(); + } + else if (c == '+') + (void)is.get(); } if (modified == CharT{}) {