How to change the server time zone in WHM

You can browse to “WHM >> MultiPHP INI Editor” and use the “Editor Mode” tab for the version of PHP associated with the account to ensure the PHP “date.timezone” value is correct. It defaults to UTC.

don’t forget to reboot the Server

if this will not work then try the following in php file: working

date_default_timezone_set('Asia/Dubai');
echo "The time is " . date('Y/m/d H:i:s');

Change default timezone is not working in php

Leave a Comment