From 79bb0331cb93a736193e733b5ae26d040931a1aa Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Sat, 14 May 2016 13:40:50 +0300 Subject: Make timestamp from_string() to consider daylight saving time --- butl/timestamp.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/butl/timestamp.cxx b/butl/timestamp.cxx index 41dc5ba..2759592 100644 --- a/butl/timestamp.cxx +++ b/butl/timestamp.cxx @@ -401,6 +401,7 @@ namespace butl else if (*p != '\0') bad_val (); // Input is not fully read. + t.tm_isdst = -1; return make_pair (t, ns); } @@ -522,6 +523,7 @@ namespace butl else if (*p != '\0') bad_val (); // Input is not fully read. + t.tm_isdst = -1; return make_pair (t, ns); } -- cgit v1.1