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

From Acenet Knowledgebase
Jump to: navigation, search
 
Line 1: Line 1:
 
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:
 
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?}}
+
[[How can I change PHP settings?]]
  
 
Here is the setting you will want to use:
 
Here is the setting you will want to use:

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