Today we are going to teach how to set the timezone for PHP via cPanel with a simple tutorial.
Set the timezone for PHP via cPanel
From the “Software” module, click on “MultiPHP INI Editor”.
Once inside “MultiPHP INI Editor” and to change the timezone of PHP, you have to follow the next steps:
- RED ARROW: Select the domain or subdomain for which you want to change the PHP time zone.
- BLUE ARROW: Select “Mode Editor”.
- GREEN ARROW: Add the following record: date.timezone=Europe/Madrid