Capturing the IP and checking works fine as long as they aren't using a proxy. But, if they do that than it is on them.
If you do use the IP to get location, you need to have a disclaimer/warning in your code/privacy statement that you will using the IP for location purposes only to set correct time stamps.
And JimHawkins is right, you can get the local time on the client apps and the following function will return unixtime:
function getUnixTime()
// get the current date and time
curdat$ = GetCurrentDate()
curtim$ = GetCurrentTime()
// get the pieces
year=val(left(curdat$,4))
month=val(left(right(curdat$,5),2))
days=val(right(curdat$,2))
hours=val(left(curtim$,2))
minutes=val(right(left(curtim$,5),2))
seconds=val(right(curtim$,2))
// convert to unix time
unixtime = GetUnixFromDate(year, month, days, hours, minutes, seconds)
endfunction unixtime
Cheers,
Ancient Lady
AGK Community Tester and AppGameKit Master