Home > Website > Can timezone be changed via .htaccess?

Can timezone be changed via .htaccess?

If you couldn't change timezone using PHP functions in your script, it's also possible to change timezone using .htaccess file. You need to add this line of code into .htaccess file: SetEnv TZ location Please note word 'location' needs to be replaced with correct timezone. You can find a full list of available timezones at http://www.php.net/manual/en/timezones.america.php