I looked into javascript, and thought about using the client’s clock, but it doesn’t seem very reliable since the client’s clock is out of my control.
I looked around for web services but wasn’t lucky.
Basically what I want is to display a specific time (e.g. 9:00:00 GMT +4) in the user’s timezone, based on location provided (city, country).
Thanks
I think this JavaScript tool jsTimezoneDetect is what you need. It is very easy to use and it can detect a pretty big range of timezones. Besides, if you want to detect the timezone from the country and city that the user selected, I think you would need to store the whole Olson timezone database and make Ajax call to get what you need.