From 33f7cc6de42b2e96e7775d0c5b67f61208c346a6 Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Tue, 8 Nov 2016 12:59:00 -0800 Subject: [PATCH] Fix overflow bug in parse --- date.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/date.h b/date.h index 80e866d..5f3fa35 100644 --- a/date.h +++ b/date.h @@ -4347,8 +4347,8 @@ parse(std::basic_istream& is, tp = floor(local_days(year{tm.tm_year + 1900}/ (tm.tm_mon+1)/ (tm.tm_mday)) + - hours{tm.tm_hour} + minutes{tm.tm_min} + - seconds{tm.tm_sec} + subseconds); + subseconds + seconds{tm.tm_sec} + + minutes{tm.tm_min} + hours{tm.tm_hour}); if (abbrev != nullptr) *abbrev = std::move(temp_abbrev); if (offset != nullptr)