Setting Timezone with .htaccess Print

  • 0

How do I offset the Timezone for my location, instead of the server timezone?

This is quite easy actually in Linux.

Open your .htaccess file and add the following line:
SetEnv TZ location

where location is the specific timezone you want to define.

A list of Supported Timezones can be found here:
https://www.php.net/manual/en/timezones.php

 


Was this answer helpful?

« Back

["\r\n