Difference between revisions of "How can I change the timezone that PHP is using?"

From Acenet Knowledgebase
Jump to: navigation, search
(test)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<html>You can change the timezone that PHP is using by using a custom php.ini file. More details on custom php.ini files can be found here:<br /><br /><a title="How can I change PHP settings?" href="https://esupport.acenet-inc.net/index.php?/Knowledgebase/Article/View/195/50/how-can-i-change-php-settings">How can I change PHP settings?</a><br /><br />Here is the setting you will want to use:<br /><br />
+
You can change the timezone that PHP is using by using a custom php.ini file. More details on custom php.ini files can be found here:
<div class="code_style">date.timezone = "<span style="color: #ff0000;"><strong>TIMEZONE</strong></span>"</div>
+
 
<br />(<em>replacing </em><strong><span style="color: #ff0000;">TIMEZONE</span></strong> <em>with your desired timezone</em>)<br /><br />Here is an example of a properly configured setting:<br /><br />
+
[[How can I change PHP settings?]]
<div class="code_style">date.timezone = "America/Detroit"</div>
+
 
<br />You can find your timezone at the PHP website:<br /><br /><a href="http://www.php.net/manual/en/timezones.php">http://www.php.net/manual/en/timezones.php</a></html> [[Category:Technical Support FAQ]]
+
Here is the setting you will want to use:
 +
 
 +
<syntaxhighlight lang="bash">date.timezone = "TIMEZONE"</syntaxhighlight>
 +
 
 +
(replacing TIMEZONE with your desired timezone)
 +
 
 +
Here is an example of a properly configured setting:
 +
 
 +
<syntaxhighlight lang="bash">date.timezone = "America/Detroit"</syntaxhighlight>
 +
 
 +
You can find your timezone at the PHP website:
 +
 
 +
[http://www.php.net/manual/en/timezones.php Timezones at php.net]
 +
 
 +
[[Category:Technical Support FAQ]]

Latest revision as of 16:32, 5 October 2012

You can change the timezone that PHP is using by using a custom php.ini file. More details on custom php.ini files can be found here:

How can I change PHP settings?

Here is the setting you will want to use:

date.timezone = "TIMEZONE"

(replacing TIMEZONE with your desired timezone)

Here is an example of a properly configured setting:

date.timezone = "America/Detroit"

You can find your timezone at the PHP website:

Timezones at php.net