Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 904a330

Browse files
committed
show additional client timezone first
1 parent 847cb15 commit 904a330

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/components/TimezoneSelector/index.jsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@ const TimezoneSelector = ({ value, onChange }) => {
1212
const isBrowserTimezoneAvailable = TIME_ZONES.findIndex(item => item === browserTimezone);
1313

1414
if (isBrowserTimezoneAvailable === -1) {
15-
const finalList = [...TIME_ZONES, browserTimezone].sort();
15+
const finalList = [browserTimezone, ...TIME_ZONES];
1616
setTimezoneList(finalList);
17-
onChange(browserTimezone);
1817
} else {
1918
setTimezoneList(TIME_ZONES);
2019
}

0 commit comments

Comments
 (0)