mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-10-30 15:07:49 -04:00
settings: build week day names from local dates (#4026)
port 2.0
(cherry picked from commit caabd9228b)
This commit is contained in:
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 {
|
||||
|
||||
Reference in new issue
Block a user