minutes fix

This commit is contained in:
Scott Beil 2018-01-04 20:50:36 -06:00 committed by Howard Hinnant
parent 7d80d89a44
commit 2b6ee6378c

View File

@ -6775,7 +6775,7 @@ from_stream(std::basic_istream<CharT, Traits>& is, const CharT* fmt,
else
read(is, rs{H, 1, 2}, CharT{':'}, ru{M, 2, 2});
if (!is.fail())
temp_offset = hours{H} + minutes{M};
temp_offset = hours{ H } + minutes{ H < 0 ? -M : M };
command = nullptr;
width = -1;
modified = CharT{};