I wonder if the cron job should be run every 1/2 hour to catch timezones that are 1/2 hour offsets?
(There are even more than I thought)
http://geography.about.com/od/culturalgeography/a/offsettime...
(There are even more than I thought)
http://geography.about.com/od/culturalgeography/a/offsettime...
I was pretty surprised at that as well when building http://hackertimezone.com. I always assumed it was mostly confined to small island chains and so forth, but there's some world cities in there as well.
It actually still works as expected.
If the time in Pakistan, for example, is 7:00am, then the time in India is 7:30am. The code just checks the hour, which would be 7 in either case.