mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Sort the first user timezone list as floats, rather than strings.
This commit is contained in:
@@ -1009,7 +1009,7 @@ if (!file_exists('.lock') && !file_exists('../application/config/config.php') &&
|
||||
];
|
||||
|
||||
usort($timezones, function ($a, $b) {
|
||||
return strcmp($a[1], $b[1]);
|
||||
return floatval($a[1]) <=> floatval($b[1]);
|
||||
});
|
||||
|
||||
// Loop through timezones to generate options
|
||||
|
||||
Reference in New Issue
Block a user