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.
// 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.
window.CHGRID_TIME_ZONE = "America/Detroit";

View File

@@ -147,13 +147,13 @@ const CLOCK_TIME_ZONE_OPTIONS = [
'Europe/Helsinki',
'Europe/London',
'Europe/Moscow',
'Pacific/Apia',
'Pacific/Auckland',
'Pacific/Chatham',
'Pacific/Honolulu',
'Pacific/Kiritimati',
'Pacific/Noumea',
'Pacific/Pago_Pago',
'Pacific/Apia',
'UTC',
] as const;
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:
`America/Anchorage`, `America/Argentina/Buenos_Aires`, `America/Chicago`, `America/Detroit`,
`America/Halifax`, `America/Indiana/Indianapolis`, `America/Kentucky/Louisville`,

View File

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