mirror of
https://github.com/HowardHinnant/date.git
synced 2024-12-29 01:49:50 +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
|
else
|
||||||
read(is, rs{H, 1, 2}, CharT{':'}, ru{M, 2, 2});
|
read(is, rs{H, 1, 2}, CharT{':'}, ru{M, 2, 2});
|
||||||
if (!is.fail())
|
if (!is.fail())
|
||||||
temp_offset = hours{H} + minutes{M};
|
temp_offset = hours{ H } + minutes{ H < 0 ? -M : M };
|
||||||
command = nullptr;
|
command = nullptr;
|
||||||
width = -1;
|
width = -1;
|
||||||
modified = CharT{};
|
modified = CharT{};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user