mirror of
https://github.com/ACSPRI/queXS
synced 2024-04-02 12:12:16 +00:00
Select the match for timezone with the most digits
This commit is contained in:
@@ -356,7 +356,8 @@ function get_time_zone($value,$type)
|
||||
|
||||
$sql = "SELECT Time_zone_name as tz
|
||||
FROM `$tname`
|
||||
WHERE val = SUBSTR($value, 1, CHAR_LENGTH( val ) )";
|
||||
WHERE val = SUBSTR($value, 1, CHAR_LENGTH( val ) )
|
||||
ORDER BY CHAR_LENGTH(val) DESC";
|
||||
|
||||
$tz = $db->GetOne($sql);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user