Is it possible for me to change the server time?

The server clock is set to Greenwich Mean Time (GMT). You cannot change the time on a shared servers.

You can however change the time zone being displayed with a PHP script. Below you can see sample codes that can be placed within your php scripts to change the displayed time to the visitor. Unfortunately there is no way for us to tell you exactly where to place it as it can vary script to script.

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

<?php date_default_timezone_set("America/Los_Angeles"); ?>

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:

SetEnv TZ Europe/London ( or any other timezone you prefer to use )

A list of supported timezones can be found here
  • 306 用戶發現這個有用
這篇文章有幫助嗎?

相關文章

PHP/Zend Modules installed on all our Shared Servers

Below is a list which stores all the default installed PHP modules that comes with all of our...

Is it possible for me to change the email timestamp?

Each webmail client has a timezone setting, which is set to the server clock by default....

Can I use Boonex Software (Ray, Dolphin & Orca) ?

This software will work on our shared servers. However you will NOT be able to use the...

Apache Modules installed on all of our Shared Servers

Apache Modules installed on all of our shared servers are listed below. Apache Modules...

Is PHP running as Apache or CGI?

We run PHP as CGI. Customers with Shared and Reseller hosting can not change this. However...