From dbee0e7da46addbde5f61c95f50046be0ab61a83 Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Fri, 17 Mar 2017 20:18:06 -0400 Subject: [PATCH] Allow parsing %Ez to parse only 1 hour digit. --- date.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/date.h b/date.h index 7fb1866..4823397 100644 --- a/date.h +++ b/date.h @@ -5986,7 +5986,7 @@ from_stream(std::basic_istream& is, const CharT* fmt, if (modified == CharT{}) read(is, rs{H, 2, 2}, ru{M, 2, 2}); else - read(is, rs{H, 2, 2}, CharT{':'}, ru{M, 2, 2}); + read(is, rs{H, 1, 2}, CharT{':'}, ru{M, 2, 2}); if (!is.fail()) temp_offset = hours{H} + minutes{M}; command = nullptr;