How can I do this?
EDIT: I’m not sure if this would work but sometimes you get those annoying pop-ups that tell you what city/suburb you’re in (usually for dating sites) – could we somehow extrapolate from that data what the time is? Is this data based on a reverse IP lookup?
Any suggestion code to get me started (I don’t really know what I’m looking for – just the end result I want) would be fantastic!
Thanks.
Use the Geo Location API to get the user’s location, then lookup their local time via some web service like this.
Realise that you have to rely on the time kept on a server somewhere. If your server has the local time to a reasonable degree of accuracy, you could just offset your server’s time to match the user’s time-zone.