Commit 788f52fc authored by Fushan Wen's avatar Fushan Wen 💬
Browse files

applets/digital-clock: Fix `Qt.formatDateTime` returns different date when minute changes

`Qt.formatDateTime` uses `MM` instead of `mm` to represent month number.

BUG: 436796
FIXED-IN: 5.24.3


(cherry picked from commit dbdae689)
parent 4c7c1cf1
Pipeline #145132 passed with stage
in 10 minutes and 15 seconds
......@@ -673,7 +673,7 @@ Item {
if (main.showDate) {
// If the date has changed, force size recalculation, because the day name
// or the month name can now be longer/shorter, so we need to adjust applet size
var currentDate = Qt.formatDateTime(dataSource.data["Local"]["DateTime"], "yyyy-mm-dd");
const currentDate = Qt.formatDateTime(dataSource.data["Local"]["DateTime"], "yyyy-MM-dd");
if (main.lastDate !== currentDate) {
doCorrections = true;
main.lastDate = currentDate
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment