From 08ea2c5dc8203c89c61a38047d2e8c68fb403e06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A5rten=20Nordheim?= Date: Wed, 8 Feb 2023 16:07:05 +0100 Subject: [PATCH] QDateTime: Fix inline use of deprecated ctor FTBFS with clang-cl. Errors out due to no conversion between TimeSpec and TimeZone. Solution is simple: the default is LocalTime, so drop the 3rd argument. Change-Id: I27307f72680836b0a142aa49e5e9653996a0b2fc Reviewed-by: Thiago Macieira Reviewed-by: Konrad Kujawa --- src/corelib/time/qdatetime.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/corelib/time/qdatetime.h b/src/corelib/time/qdatetime.h index 04da60469ec..5f41fa470aa 100644 --- a/src/corelib/time/qdatetime.h +++ b/src/corelib/time/qdatetime.h @@ -452,7 +452,7 @@ class Q_CORE_EXPORT QDateTime QT_POST_CXX17_API_IN_EXPORTED_CLASS static QDateTime fromStdLocalTime(const std::chrono::local_time &time) { - QDateTime result(QDate(1970, 1, 1), QTime(0, 0, 0), Qt::LocalTime); + QDateTime result(QDate(1970, 1, 1), QTime(0, 0, 0)); return result.addMSecs(time.time_since_epoch().count()); }