From 381c805f4d4620c6ef26ed6cabc756fdefd76eac Mon Sep 17 00:00:00 2001 From: Mario Mohar <76663003+Mario-Mohar@users.noreply.github.com> Date: Fri, 30 Oct 2026 14:15:12 +0100 Subject: [PATCH] settings: build week day names from local dates (#4026) port 2.0 (cherry picked from commit caabd9228be66aa3fc2a838af97ead01b6e4bb32) --- quickshell/Modules/Settings/TimeWeatherTab.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/quickshell/Modules/Settings/TimeWeatherTab.qml b/quickshell/Modules/Settings/TimeWeatherTab.qml index 3d5377433..f991b6a0d 100644 --- a/quickshell/Modules/Settings/TimeWeatherTab.qml +++ b/quickshell/Modules/Settings/TimeWeatherTab.qml @@ -29,7 +29,8 @@ Item { } function _dayNames() { - return Array(7).fill(0).map((_, i) => new Date(Date.UTC(2026, 2, 1 + i, 0, 0, 0)).toLocaleDateString(I18n.locale(), "dddd")).map(d => d[0].toUpperCase() + d.slice(1)); + // Local noon on Sunday 1 March 2026 onwards; a UTC midnight is the day before west of UTC. + return Array(7).fill(0).map((_, i) => new Date(2026, 2, 1 + i, 12, 0, 0).toLocaleDateString(I18n.locale(), "dddd")).map(d => d[0].toUpperCase() + d.slice(1)); } SettingsPage {