Sort the first user timezone list as floats, rather than strings.

This commit is contained in:
Lance Conry
2025-08-27 12:47:54 +10:00
parent dd5599925a
commit 7e18210668

View File

@@ -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