- Login to your cPanel.
- Scroll down to the Files section, then click on the File Manager menu.
- On the left side panel, a list of directories of your hosting account is displayed. Here you need to click on the public_html folder.
- In the public_html folder, you need to navigate to file public_html -> php.ini file. If you do not have the php.ini file yet, click the +File button at the top of the page, type php.ini and click Create New File to save.
- Right-click on the php.ini file, then click on the Edit button.
- Now you need to insert the line of code below at the top of your php.ini file:
Note: Change Place/Your_town with your own time zone as per your requirement.
date.timezone = “Europe/London”
- After entering the above line, click on the Save Changes button.