[#494] switched UTC offset and timeZone name in timezone selector (#513)

This commit is contained in:
Camille Moussu
2026-02-05 11:30:01 +01:00
committed by GitHub
parent b142eb4e03
commit 9cf8d7f3ab
2 changed files with 2 additions and 2 deletions
@@ -611,7 +611,7 @@ describe("SettingsPage", () => {
renderWithProviders(<SettingsPage />, stateWithoutTimeZone);
const timezoneInput = screen.getByDisplayValue("(UTC) UTC");
const timezoneInput = screen.getByDisplayValue("UTC (UTC)");
expect(timezoneInput).toBeDefined();
});
@@ -60,7 +60,7 @@ export function TimezoneAutocomplete({
}
}}
options={options}
getOptionLabel={(option) => `(${option.offset}) ${option.label}`}
getOptionLabel={(option) => `${option.label} (${option.offset})`}
size={size}
sx={width ? { width } : undefined}
disableClearable={disableClearable}