diff --git a/include/date/date.h b/include/date/date.h index 4eb1c3d..836e326 100644 --- a/include/date/date.h +++ b/include/date/date.h @@ -7313,8 +7313,8 @@ from_stream(std::basic_istream& is, const CharT* fmt, fds.wd = weekday{static_cast(wd)}; if (abbrev != nullptr) *abbrev = std::move(temp_abbrev); - if (offset != nullptr) - *offset = temp_offset; + if (offset != nullptr && temp_offset != not_a_offset) + *offset = temp_offset; } return is; }