From 6236611aeeb83b045c8fd6977eb8832f2abb1751 Mon Sep 17 00:00:00 2001 From: Mark Liversedge Date: Tue, 14 Sep 2021 09:17:07 +0100 Subject: [PATCH] Interval time tweak .. time_to_string is for formatting durations, so it will use as few characters as possible (e.g 10s, 1:00). since the interval time is a time of day we want the full hh:mm:ss format. --- src/Core/DataFilter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Core/DataFilter.cpp b/src/Core/DataFilter.cpp index 9de5be697..1f06797db 100644 --- a/src/Core/DataFilter.cpp +++ b/src/Core/DataFilter.cpp @@ -4692,9 +4692,9 @@ Result Leaf::eval(DataFilterRuntime *df, Leaf *leaf, const Result &x, long it, R if(symbol == "date") { value= QDate(1900,01,01).daysTo(ride->dateTime.date()); if (wantstrings) asstring = ride->dateTime.date().toString("dd MMM yyyy"); - } else if(symbol == "time") { + } else if(symbol == "time") { value= QTime(0,0,0).secsTo(ride->dateTime.time().addSecs(ii->start)); - if (wantstrings) asstring = time_to_string(value); + if (wantstrings) asstring = ride->dateTime.time().addSecs(ii->start).toString("hh:mm:ss"); } else if(symbol == "filename") { asstring = ride->fileName; } else if(symbol == "name") {