From 24e43d063a50bf512213b4a7e525aac96594555e Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Sun, 27 Jul 2025 00:18:37 +0200 Subject: [PATCH] Fix test --- autotests/eventhandlertest.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/autotests/eventhandlertest.cpp b/autotests/eventhandlertest.cpp index a99a9a8f4..2c9da178f 100644 --- a/autotests/eventhandlertest.cpp +++ b/autotests/eventhandlertest.cpp @@ -130,7 +130,8 @@ void EventHandlerTest::timeString() QLocale().toString(QDateTime::fromMSecsSinceEpoch(1432735824654, QTimeZone(QTimeZone::UTC)).toLocalTime().time(), QLocale::ShortFormat)); QCOMPARE(EventHandler::timeString(room, event, true), format.formatRelativeDate(QDateTime::fromMSecsSinceEpoch(1432735824654, QTimeZone(QTimeZone::UTC)).toLocalTime().date(), QLocale::ShortFormat)); - QCOMPARE(EventHandler::timeString(room, event, u"hh:mm"_s), QDateTime::fromMSecsSinceEpoch(1432735824654, QTimeZone(QTimeZone::UTC)).toString(u"hh:mm"_s)); + QCOMPARE(EventHandler::timeString(room, event, u"hh:mm"_s), + QDateTime::fromMSecsSinceEpoch(1432735824654, QTimeZone(QTimeZone::LocalTime)).toString(u"hh:mm"_s)); const auto txID = room->postJson("m.room.message"_L1, event->fullJson()); QCOMPARE(room->pendingEvents().size(), 1);