Results 1 to 1 of 1
-
20th Mar 2014, 01:07 PM #1
How to change the date.timezone value in PHP?
If your PHP scripts do not show the correct time, the reason is that most probably your hosting server is in a different timezone. This can be easily resolved by changing a setting in PHP called date.timezone.
Depending on your location you can set a specific date.timezone value in PHP using the following option which should be added to your local php.ini file:
date.timezone = "US/Central"
The above example assumes you'd like to set the timezone for your PHP scripts to US/Central. The full list of supported time zones is available here and you should simply replace "US/Central" with the desired timezone.Areon Reviewed by Areon on . How to change the date.timezone value in PHP? If your PHP scripts do not show the correct time, the reason is that most probably your hosting server is in a different timezone. This can be easily resolved by changing a setting in PHP called date.timezone. Depending on your location you can set a specific date.timezone value in PHP using the following option which should be added to your local php.ini file: date.timezone = "US/Central" The above example assumes you'd like to set the timezone for your PHP scripts to US/Central. Rating: 5
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
themaCreator - create posts from...
Version 3.24 released. Open older version (or...