Here is another method you could also try.

code:
SELECT
CASE (SUBSTR(@IPADDRESS0,1,11)) = "125.111.142"
;code to set time to server in that region
CASE (SUBSTR(@IPADDRESS0,1,11)) = "125. 26.115"
;code to set time to server in that region
CASE (SUBSTR(@IPADDRESS0,1,11)) = "125. 10. 40"
;code to set time to server in that region
CASE (SUBSTR(@IPADDRESS0,1,11)) = "105.110.120"
;code to set time to server in that region
CASE (SUBSTR(@IPADDRESS0,1,7)) = "145. 15"
;code to set time to server in that region
CASE (SUBSTR(@IPADDRESS0,1,7)) = "130.147"
;code to set time to server in that region
CASE 1
; Don't know your IP range, so won't do anything. just log it
ENDSELECT