From b42f8dc9e3667773961b40e6f57d52e6ec09aeaa Mon Sep 17 00:00:00 2001 From: Ladislav Foldyna Date: Wed, 11 Dec 2024 16:55:38 +0100 Subject: [PATCH] QT6.8: Migration from QDateTime constructor Qt::UTC to QTimeZone::utc() --- logformat/AdiFormat.cpp | 4 ++-- ui/NewContactWidget.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/logformat/AdiFormat.cpp b/logformat/AdiFormat.cpp index b8ae161c..f0ea0655 100644 --- a/logformat/AdiFormat.cpp +++ b/logformat/AdiFormat.cpp @@ -470,8 +470,8 @@ void AdiFormat::contactFields2SQLRecord(QMap &contact, QSqlRe time_on = time_off; } - QDateTime start_time(date_on, time_on, Qt::UTC); - QDateTime end_time(date_off, time_off, Qt::UTC); + QDateTime start_time(date_on, time_on, QTimeZone::utc()); + QDateTime end_time(date_off, time_off, QTimeZone::utc()); if ( end_time < start_time ) { diff --git a/ui/NewContactWidget.cpp b/ui/NewContactWidget.cpp index 3bce377d..61095db5 100644 --- a/ui/NewContactWidget.cpp +++ b/ui/NewContactWidget.cpp @@ -1593,7 +1593,7 @@ void NewContactWidget::saveContact() if ( !isQSOTimeStarted() ) updateTime(); - QDateTime start = QDateTime(ui->dateEdit->date(), ui->timeOnEdit->time(), Qt::UTC); + QDateTime start = QDateTime(ui->dateEdit->date(), ui->timeOnEdit->time(), QTimeZone::utc()); QDateTime end = ( isManualEnterMode ) ? start.addSecs(QTime(0,0).secsTo(ui->qsoDurationEdit->time())) : timeOff;