Merge pull request #2267 from RhinoLance/first-user-timezone

Sort the first user timezone list as floats, rather than strings.
This commit is contained in:
Florian (DF2ET)
2025-08-28 08:17:13 +02:00
committed by GitHub

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