Skip to content

Commit

Permalink
UserStatusDialog.cpp: Fix timezone
Browse files Browse the repository at this point in the history
This test fails on the day before a timezone switch:
   Actual   (model.clearAtDisplayString()): "23 hours"
   Expected (tr("1 day"))                 : "1 day"

Setting the timezone to UTC remedies this problem.

Signed-off-by: Thomas Witt <[email protected]>
  • Loading branch information
pyromaniac2k committed Mar 30, 2024
1 parent 8d216ce commit a88316e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/testsetuserstatusdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ class TestSetUserStatusDialog : public QObject
private slots:
void testCtor_fetchStatusAndPredefinedStatuses()
{
const QDateTime currentDateTime(QDateTime::currentDateTime());
const QDateTime currentDateTime(QDateTime::currentDateTimeUtc());

const QString userStatusId("fake-id");
const QString userStatusMessage("Some status");
Expand Down

0 comments on commit a88316e

Please sign in to comment.