From dbf5b1f11d3f0134ee987627067f9b9e82766036 Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Fri, 26 Jul 2024 17:34:24 +0200 Subject: [PATCH] remove input correction --- library/src/calculator_functions.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/library/src/calculator_functions.cpp b/library/src/calculator_functions.cpp index 2f38e89..1361488 100644 --- a/library/src/calculator_functions.cpp +++ b/library/src/calculator_functions.cpp @@ -350,6 +350,8 @@ std::string Calculator::GetDurationFromCost(Configuration* cfg, // durationInSecs += duration.pun_duration * 60; //} else { durationInSecs = duration.pun_duration * 60; + + // durationInSecs -= 720 * 60; //} if ((double)price == cost) { @@ -416,7 +418,7 @@ std::string Calculator::GetDurationFromCost(Configuration* cfg, qCritical() << DBG_HEADER << "LOWER" << lower.toString(Qt::ISODate); - inputDate = inputDate.addSecs(lower.secsTo(upper)); + // inputDate = inputDate.addSecs(lower.secsTo(upper)); qCritical() << DBG_HEADER << "NEW INPUT" << inputDate.toString(Qt::ISODate);