From 25b87b540ea7903ab4d72174d2f77888d2a7a909 Mon Sep 17 00:00:00 2001 From: Jorge Date: Wed, 2 Oct 2024 11:43:24 +0200 Subject: [PATCH] Use system locale for date time --- package/contents/ui/main.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/contents/ui/main.qml b/package/contents/ui/main.qml index d298c2d..54bf163 100644 --- a/package/contents/ui/main.qml +++ b/package/contents/ui/main.qml @@ -53,8 +53,8 @@ PlasmoidItem { onDataChanged: { var time_format = use24HourFormat ? "hh:mm" : "hh:mm AP" var curDate = dataSource.data["Local"]["DateTime"] - display_day.text = Qt.formatDate(curDate, "dddd").toUpperCase() - display_date.text = Qt.formatDate(curDate, dateFormat).toUpperCase() + display_day.text = curDate.toLocaleString(Qt.locale(), "dddd").toUpperCase() + display_date.text = curDate.toLocaleString(Qt.locale(), dateFormat).toUpperCase() display_time.text = timeCharacter + " " + Qt.formatTime(curDate, time_format) + " " + timeCharacter }