aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--butl/timestamp.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/butl/timestamp.cxx b/butl/timestamp.cxx
index f3966b7..0da9f4c 100644
--- a/butl/timestamp.cxx
+++ b/butl/timestamp.cxx
@@ -391,7 +391,7 @@ namespace butl
{
// No %[], so just parse with strptime().
//
- tm t {};
+ tm t = tm ();
const char* p (strptime (input, format, &t));
if (p == nullptr)
bad_val ();
@@ -439,7 +439,7 @@ namespace butl
// that preceeds the %[] specifier. The returned pointer will be the
// position we need to start from to parse the fraction.
//
- tm t {};
+ tm t = tm ();
// What if %[] is first, there is nothing before it? According to the
// strptime() documentation an empty format string is a valid one.
@@ -510,7 +510,7 @@ namespace butl
// Reparse the modified input with the modified format.
//
- t = {};
+ t = tm ();
const char* b (in.c_str ());
p = strptime (b, fm.c_str (), &t);