2
0
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:
root
2013-09-11 14:59:07 +10:00
parent d9ba5d6e95
commit a4942630c4

View File

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