Skip to content

Commit

Permalink
Fixed a mistake in World-Clock's code when seconds are shown (#1883)
Browse files Browse the repository at this point in the history
The mistake didn't have a serious consequence.

Fixes #1882
  • Loading branch information
tsujan authored Apr 8, 2023
1 parent 5e467d2 commit 8efff03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin-worldclock/lxqtworldclock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ void LXQtWorldClock::updateTimeText()
{
isUpToDate = false;
if (mUpdateInterval < 60000)
mShownTime = tzNow.addSecs(-tzNow.time().msec()); // s
mShownTime = tzNow.addMSecs(-tzNow.time().msec()); // s
else if (mUpdateInterval < 3600000)
mShownTime = tzNow.addSecs(-tzNow.time().second()); // m
else
Expand All @@ -116,7 +116,7 @@ void LXQtWorldClock::updateTimeText()
if (diff < 0 || diff >= 1)
{
isUpToDate = false;
mShownTime = tzNow.addSecs(-tzNow.time().msec());
mShownTime = tzNow.addMSecs(-tzNow.time().msec());
}
}
else if (mUpdateInterval < 3600000)
Expand Down

0 comments on commit 8efff03

Please sign in to comment.