That wouldn't work, I'm afraid. I forgot that gettime only uses the server time, so therefore it's comparing itself and not the players time. Thanks anyway, and thanks to Vince.
how would it not work? if you use geo-ip to know a user is in say GMT+1 and the server is in GMT+2 why can't you adjust the gettime() result by one hour? its just math some simple math.