Skip to content

Commit 8efff03

Browse files
authored
Fixed a mistake in World-Clock's code when seconds are shown (#1883)
The mistake didn't have a serious consequence. Fixes #1882
1 parent 5e467d2 commit 8efff03

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugin-worldclock/lxqtworldclock.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ void LXQtWorldClock::updateTimeText()
102102
{
103103
isUpToDate = false;
104104
if (mUpdateInterval < 60000)
105-
mShownTime = tzNow.addSecs(-tzNow.time().msec()); // s
105+
mShownTime = tzNow.addMSecs(-tzNow.time().msec()); // s
106106
else if (mUpdateInterval < 3600000)
107107
mShownTime = tzNow.addSecs(-tzNow.time().second()); // m
108108
else
@@ -116,7 +116,7 @@ void LXQtWorldClock::updateTimeText()
116116
if (diff < 0 || diff >= 1)
117117
{
118118
isUpToDate = false;
119-
mShownTime = tzNow.addSecs(-tzNow.time().msec());
119+
mShownTime = tzNow.addMSecs(-tzNow.time().msec());
120120
}
121121
}
122122
else if (mUpdateInterval < 3600000)

0 commit comments

Comments
 (0)