From 53a185e7a9d371d0b086797f16a5bb8be3350f05 Mon Sep 17 00:00:00 2001 From: ToruNiina Date: Tue, 18 Jun 2019 21:41:30 +0900 Subject: [PATCH] fix: revert misjudgement as a bug Probably I'm too tired. This reverts commit adcd75e0170fcea844f98e230e7045181852aeaa. --- toml/datetime.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/toml/datetime.hpp b/toml/datetime.hpp index 9429128..f0ae405 100644 --- a/toml/datetime.hpp +++ b/toml/datetime.hpp @@ -450,13 +450,13 @@ struct offset_datetime : date(ld.date), time(ld.time), offset(get_local_offset()) {} explicit offset_datetime(const std::chrono::system_clock::time_point& tp) - : offset_datetime(local_datetime(tp)), offset(get_local_offset()) + : offset_datetime(local_datetime(tp)) {} explicit offset_datetime(const std::time_t& t) - : offset_datetime(local_datetime(t)), offset(get_local_offset()) + : offset_datetime(local_datetime(t)) {} explicit offset_datetime(const std::tm& t) - : offset_datetime(local_datetime(t)), offset(get_local_offset()) + : offset_datetime(local_datetime(t)) {} operator std::chrono::system_clock::time_point() const