mirror of
https://github.com/HowardHinnant/date.git
synced 2024-12-27 16:41:04 +08:00
minutes fix
This commit is contained in:
parent
7d80d89a44
commit
2b6ee6378c
@ -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{};
|
||||
|
Loading…
x
Reference in New Issue
Block a user