From 1c45aa5806a0891025eb4729b9e0c8cfb9c68e44 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 24 Jan 2016 22:10:39 +0000 Subject: [PATCH] Fix truncated log timestamps in at least some cases. --- src/lib/log_entry.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/log_entry.cc b/src/lib/log_entry.cc index d29b56747..99443e34a 100644 --- a/src/lib/log_entry.cc +++ b/src/lib/log_entry.cc @@ -50,7 +50,7 @@ LogEntry::get () const struct tm* t = localtime (&sec); strftime (buffer, 64, "%c", t); string a (buffer); - s << a.substr (0, a.length() - 1) << N_(": "); + s << a << N_(": "); } if (_type & TYPE_ERROR) { -- 2.30.2