settings: build week day names from local dates (#4026)

port 2.0

(cherry picked from commit caabd9228b)
This commit is contained in:
Mario Mohar authored and dux-ci[bot] committed 2026-10-30 13:15:29 +00:00
1 parent 7a393133b8
commit 381c805f4d
1 file changed
+2 -1
@@ -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 {