Sort timezone options strictly alphabetically

This commit is contained in:
Jage9
2026-02-21 16:32:28 -05:00
parent e0fc98d3f1
commit 0c842340ad
4 changed files with 4 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
// Maintainer-controlled web client version. // Maintainer-controlled web client version.
// Format: YYYY.MM.DD Rn (example: 2026.02.20 R2) // Format: YYYY.MM.DD Rn (example: 2026.02.20 R2)
window.CHGRID_WEB_VERSION = "2026.02.21 R102"; window.CHGRID_WEB_VERSION = "2026.02.21 R103";
// Optional display timezone for timestamps. Falls back to America/Detroit if unset/invalid. // Optional display timezone for timestamps. Falls back to America/Detroit if unset/invalid.
window.CHGRID_TIME_ZONE = "America/Detroit"; window.CHGRID_TIME_ZONE = "America/Detroit";

View File

@@ -147,13 +147,13 @@ const CLOCK_TIME_ZONE_OPTIONS = [
'Europe/Helsinki', 'Europe/Helsinki',
'Europe/London', 'Europe/London',
'Europe/Moscow', 'Europe/Moscow',
'Pacific/Apia',
'Pacific/Auckland', 'Pacific/Auckland',
'Pacific/Chatham', 'Pacific/Chatham',
'Pacific/Honolulu', 'Pacific/Honolulu',
'Pacific/Kiritimati', 'Pacific/Kiritimati',
'Pacific/Noumea', 'Pacific/Noumea',
'Pacific/Pago_Pago', 'Pacific/Pago_Pago',
'Pacific/Apia',
'UTC', 'UTC',
] as const; ] as const;
dom.appVersion.textContent = APP_VERSION dom.appVersion.textContent = APP_VERSION

View File

@@ -105,7 +105,7 @@
} }
``` ```
- `timeZone`: one of `America/Detroit | America/New_York | America/Indiana/Indianapolis | America/Kentucky/Louisville`. - `timeZone`: one of the supported IANA zones listed below.
- `timeZone`: one representative IANA zone per world UTC offset. Includes: - `timeZone`: one representative IANA zone per world UTC offset. Includes:
`America/Anchorage`, `America/Argentina/Buenos_Aires`, `America/Chicago`, `America/Detroit`, `America/Anchorage`, `America/Argentina/Buenos_Aires`, `America/Chicago`, `America/Detroit`,
`America/Halifax`, `America/Indiana/Indianapolis`, `America/Kentucky/Louisville`, `America/Halifax`, `America/Indiana/Indianapolis`, `America/Kentucky/Louisville`,

View File

@@ -38,13 +38,13 @@ CLOCK_TIME_ZONE_OPTIONS: tuple[str, ...] = (
"Europe/Helsinki", "Europe/Helsinki",
"Europe/London", "Europe/London",
"Europe/Moscow", "Europe/Moscow",
"Pacific/Apia",
"Pacific/Auckland", "Pacific/Auckland",
"Pacific/Chatham", "Pacific/Chatham",
"Pacific/Honolulu", "Pacific/Honolulu",
"Pacific/Kiritimati", "Pacific/Kiritimati",
"Pacific/Noumea", "Pacific/Noumea",
"Pacific/Pago_Pago", "Pacific/Pago_Pago",
"Pacific/Apia",
"UTC", "UTC",
) )