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;