In my web app, I let the users choose their preferred timezone from a list (that contains all timezones that PHP supports).
Let\'s say that $_POST[\'timezone\']
$_POST[\'timezone\']
This function changes the timezone for the execution of the script only. You could store the timezone in a session variable and set the time zone on top of every page.