Change Your System Time Zone
Posted by on 27 August 2013 07:48 PM
|
|
The time zone used on your Linux system is set in the '/etc/localtime' file. To replace the file with the correct time zone file for the time zone you need:
You can also run 'hwclock' command via command line to view the hardware clock and verify that it matches the correct time displayed by the 'date' command. If the two time zones don't match, then correct the hardware clock by running 'hwclock --systohc' command, which will set the hardware clock to the systems time or vice versa ('hwclock --hctosys') to set the system time from the hardware clock. If you need additional assistance with this then please open a Support request! Change PHP's TimezonePHP's time zone is set by changing or adding the date.timezone variable in /usr/local/lib/php.ini or your custom php.ini file, if your using one. Changing the system time zone above does not apply to PHP if the date.timezone setting in PHP is set to something different than the system. Example: date.timezone="America/Chicago" Add the above line to the end of the php.ini file (with your time zone) and restart Apache for the change to take effect. If your using a custom php.ini file then no restart is necessary. Supported Timezones in PHPAfrica Full list of countries/zones can be found here http://php.net/manual/en/timezones.php | |
|