From f059adb6397fc92dd201c66e418778e801d8172a Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 11 Jul 2020 12:00:05 -0700 Subject: helper functions: remove timestamp argument from gettiemzoneoffset() The last user of that argument has been removed. (a random whitespace fix snuck in with this) Signed-off-by: Dirk Hohndel --- core/qthelper.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'core/qthelper.cpp') diff --git a/core/qthelper.cpp b/core/qthelper.cpp index 1ae788966..656640755 100644 --- a/core/qthelper.cpp +++ b/core/qthelper.cpp @@ -624,7 +624,7 @@ QString get_pressure_string(pressure_t pressure, bool showunit) QString get_salinity_string(int salinity) { - return QStringLiteral("%L1%2").arg(salinity / 10.0).arg(gettextFromC::tr("g/ℓ")); + return QStringLiteral("%L1%2").arg(salinity / 10.0).arg(gettextFromC::tr("g/ℓ")); } QString get_water_type_string(int salinity) @@ -690,13 +690,10 @@ QString getPrintingTemplatePathBundle() return path; } -int gettimezoneoffset(timestamp_t when) +int gettimezoneoffset() { QDateTime dt1, dt2; - if (when == 0) - dt1 = QDateTime::currentDateTime(); - else - dt1 = timestampToDateTime(when); + dt1 = QDateTime::currentDateTime(); dt2 = dt1.toUTC(); dt1.setTimeSpec(Qt::UTC); return dt2.secsTo(dt1); -- cgit v1.2.3-70-g09d2