Commit dbdae689 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
parent 9ae8ef01
Pipeline #145131 passed with stage
in 10 minutes and 24 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(["Local"]["DateTime"], "yyyy-mm-dd");
const currentDate = Qt.formatDateTime(["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