From c19a6dfa4240cd716152637f945e041e960b0647 Mon Sep 17 00:00:00 2001 From: Ana Hobden Date: Mon, 10 Nov 2025 22:23:39 -0800 Subject: [PATCH] Calendar: Use the QT Locale formats --- Modules/Panels/Calendar/CalendarPanel.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/Panels/Calendar/CalendarPanel.qml b/Modules/Panels/Calendar/CalendarPanel.qml index 625cffd0..88277536 100644 --- a/Modules/Panels/Calendar/CalendarPanel.qml +++ b/Modules/Panels/Calendar/CalendarPanel.qml @@ -608,9 +608,9 @@ SmartPanel { return event.summary } else { const start = new Date(event.start * 1000) - const startFormatted = I18n.locale.toString(start, "HH:mm").split("\\n") + const startFormatted = start.toLocaleTimeString(I18n.locale, Locale.ShortFormat) const end = new Date(event.end * 1000) - const endFormatted = I18n.locale.toString(end, "HH:mm").split("\\n") + const endFormatted = end.toLocaleTimeString(I18n.locale, Locale.ShortFormat) return `${startFormatted}-${endFormatted} ${event.summary}` } }).join('\n')