aboutsummaryrefslogtreecommitdiff
path: root/butl/timestamp.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2016-05-14 13:40:50 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2016-05-15 16:02:26 +0300
commit79bb0331cb93a736193e733b5ae26d040931a1aa (patch)
treef1b747e6bb19ef9142657138f3789759e4c8b54f /butl/timestamp.cxx
parent26be36a43e7d209faf63a286331f82ab74198d4e (diff)
Make timestamp from_string() to consider daylight saving time
Diffstat (limited to 'butl/timestamp.cxx')
-rw-r--r--butl/timestamp.cxx2
1 files changed, 2 insertions, 0 deletions
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);
}