You can configure the cPanel PHP settings to use your local time zone by setting the date.timezone directive either in the .user.ini file or through the MultiPHP INI Editor in cPanel.
date.timezone on cPanel HostingYou can configure your PHP settings to use your local time zone by setting the date.timezone directive either in the .user.ini file or through the MultiPHP INI Editor in cPanel.
.user.ini FileLog in to your cPanel and open File Manager.

Navigate to the public_html directory of your website (or yourdomain.com for addon domains).
Click on the Settings button and enable Show Hidden Files (dotfiles).

If the .user.ini file does not exist, create it using the + File button.
Add the following line and save the file:
date.timezone = "Asia/Kolkata"Replace Asia/Kolkata with your preferred time zone.
You can find the complete list of supported PHP time zones in the official PHP documentation.
Navigate to cPanel → MultiPHP INI Editor.

Select Editor Mode.

Choose your domain from the dropdown.

Add the following line and click Save:
date.timezone = "Asia/Kolkata"