DateTime: proper locale usage. Fix #390

Replaced all Qt.formatDateTime() by Qt.locale().toString()
This commit is contained in:
ItsLemmy
2025-09-29 10:07:58 -04:00
parent 933ba54612
commit 22794ea922
5 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -27,12 +27,12 @@ Loader {
}
function formatTime() {
return Settings.data.location.use12hourFormat ? Qt.formatDateTime(new Date(), "h:mm A") : Qt.formatDateTime(new Date(), "HH:mm")
return Settings.data.location.use12hourFormat ? Qt.locale().toString(new Date(), "h:mm A") : Qt.locale().toString(new Date(), "HH:mm")
}
function formatDate() {
// For full text date, day is always before month, so we use this format for everybody: Wednesday, September 17.
return Qt.formatDateTime(new Date(), "dddd, MMMM d")
return Qt.locale().toString(new Date(), "dddd, MMMM d")
}
function scheduleUnloadAfterUnlock() {