How to set PHP timezone in cPanel?

  • Last Created On May 26, 2024
0 0

You can configure the cPanel PHP setting to use your local time zone by setting the date.timezone directive in .user.ini or using our MultiPHP INI editor.


How to change 'date.timezone' on cPanel Hosting:

Method 1:


Login to your cPanel >> File Manager


Navigate to the public_html folder of your website or yourdomain.com for addon domains. Next, click on the Setting tab to display hidden and dot files as below:


If you don't have the .user.ini file yet, feel free to create it using the "+ File"button


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


change to the preferred time zone, you can find PHP supported list of timezone Here!


Method 2:


Navigate to cPanel > MultiPHP INI Editor > Editor Mode. Selet your domain and add the below line then click save.


date.timezone = "Asia/Kolkata"



That's all.


Recent Articles

  • Will you back up my website?
  • How do I manage files in my WordPress ac...
  • How many customers share a server?
  • Can I upgrade anytime?
  • What Is WordPress Hosting?

Popular Articles

  • How to set PHP timezone in cPanel?
  • What is shared hosting?
  • What is Web Hosting?
  • What to consider when choosing a Web Hos...
  • Can I upgrade my plan?