Can I change time zone or server clock / time? Print

  • 73

The server clock is set to Central Standard Time. You cannot change the time on the server clock.

You can change the time zone being displayed with a PHP script. (Unfortunately, I cannot tell you where to put this code. You will need to consult with the program developer.) Here is a sample code:

 

putenv("TZ=Europe/Amsterdam");
?>

You can set the timezone in .htaccess as well. (You can create a New File and name it ".htaccess", or you can edit the existing one. The .htaccess file belongs in /public_html/ - or a subdirectory if for a subdomain or addon domain). Add the line:   List of timezones is here: http://us.php.net/manual/en/timezones.php

 

SetEnv TZ America/Indianapolis

Was this answer helpful?

« Back

Powered by WHMCompleteSolution