Problem: I needed to set default timezone for a site to get Zen Cart installed. The usual way would be to call date_default_timezone_set from a globally included script, or to use the date.timezone option in a php.ini file. The problem is that I don’t have access to the php.ini file and there is no script that will be called across the board.
Fix: Turns out PHP flags can be called from .htaccess file. So assuming you are using Unix type hosting (or another server that can interpret distributed configuration files), you can add this to your .htaccess file to set the timezone:
php_value date.timezone Europe/London
Save that, upload it, and if you then look at the output of phpinfo() (create a php file with this in and upload it), you should see: