How to Change Time Zone of Website Using PHP.ini File?

In this article you will learn How to change Time zone of website using php.ini file

 

C-Panel also called control panel is most popular Linux-based interface for web hosting accounts. It provide you to almost manage all of your domain/web services in a single place/platform. In simple we can say that it’s a tools that is designed to run and control a website.

We can use the Time zone for different purposes but most of the time we use it to assign our local time of our region or country.

To change the Time zone from C-Panel follow the steps given below in the article.

 

Step-1:

Login into your c-panel account.

 

Step-2:

Click on the File manager from FILES menu.

Image 1

 

Step-3: 

Select the php.ini file and edit it. If you are not able to find the file then create it.

Image 2

 

Step-4:

Write the below line of code in your php.ini file and save it.

Date.timezone=”Asia/Karachi”

Image 3

Now your website time zone has been changed.

 

Important note: If you want to check your time zone then use PHP info () function.

 

Hope this article helps you to change time zone of website using php.ini file. WebSouls web hosting company in Pakistan chained up series of knowledge based articles to assist in web hosting accounts. WebSouls has not only been serving in Pakistani Web Hosting industry since 2002 but also an official c-panel partner. If you’re looking to buy any VPS hosting or Dedicated Server in Pakistan then we are right choice for you.

 

WebSouls – Web Hosting Company in Pakistan

  • php, phpini, Cpanel, cPanel, cpanel
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

..htaccess guidance

  .htaccess guidance .htaccess is a special Apache file that tells your website how to...

Linux Sites preview Offline

Linux Site's Preview Offline   http://IP_address/~UserName OR http://ServerName/~userName...

How to scan your website's data from CPanel?

Welcome the comprehensive step-by-step guide by our web hosting company on how to scan your...

How Can I Download a Backup of Full cPanel Account Using FTP?

If you want to download a backup of your website using FTP, please follow these easy steps below:...

How to create an addon domain?

An add-on domain is a fully functional domain and it can be created by using your Cpanel. Add-on...