Managing timezones for different users
I have a website where I have many users coming from different countries. Users can schedule a task based on their timezone. Now there is a cron running on the server after every min, the cron executes a script which checks if there are any scheduled task of any user and if so it does the needful.
Since my server is based in the US, the script executed by the cron considers the timezone of the US. What do I have to do in my script that will execute the user's task based on user's timezone instead of server's timezone?
Thanks in advance for any ideas
To convert between timezones I use PHP's DateTimeZone class and DateTime class.
This might help: http://stackoverflow.com/questions/5...mezones-in-php
And here's the timezones that I know you can use: http://php.net/manual/en/timezones.php
The better I get at programming, the more I appreciate arrays. Handy dandy things they are.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)