HostArmada Web Hosting Knowledge Base

Knowledge is power! Use that power and achieve total and unconditional control over the Web Hosting Services!

How can I change my PHP timezone?

The default date.timezone directives for the PHP service on our Shared Hosting Servers will be the following:

  • Fremont - PDT/PST
  • Newark - EST/EDT
  • Dallas - CDT/CST
  • Toronto - EDT/EST
  • London - GMT/BST
  • Frankfurt - CET/CEST
  • Mumbai - IST
  • Singapore - SGT
  • Syndey - AEST/AEDT

You have the option of changing that from your cPanel depending on what kind of service you are utilizing with HostArmada.

 

Shared Hosting Services

Here are the steps you should follow if you are using on our HostArmada's shared hosting plans:

  • Log into your cPanel.
  • Use the search option on the top right corner and type in "Select PHP Version". When the result is presented, please click on it. Alternatively, you can navigate to the "Software" features group and choose the "Select PHP Version" tool.

 

Access the 'Select PHP version' tool in cPanel

 

  • On the top right side, you will see two buttons - "Switch to PHP Options" and "Reset to default". Please press the "Switch to PHP Options" button.
  • On the next page, you will see a lot of options listed there. Locate the 'date.timezone' directive and enter the value respective to the desired timezone. If you are not sure about it, you can check all available timezone supported by PHP on PHP's official website.

 

Change PHP date.timezone directive through the PHP Selector in cPanel

 

  • Once you enter the desired timezone, please click anywhere on the screen.

 

PHP date.timezone directive saved

 

  • With this done, you will see a pop-up at the top right corner of the screen indicating that the new timezone was successfully saved.

 

VPS/Dedicated Servers

Changing this directive on our VPS and Dedicated Servers is different. To change it, please follow these steps:

  • Log into your cPanel.
  • Please use the search bar on the top and type in "MultiPHP INI Editor". When cPanel presents the result, please click on it. Alternatively, you can navigate to the "Software" features group and choose the "MultiPHP INI Editor" tool.

 

Access the 'MultiPHP INI Editor' tool in cPanel

 

  • You will be redirected to a page containing two tabs - "Basic Mode" and "Editor Mode". Please select the "Editor Mode".
  • From the dropdown, located under the "Edit PHP INI settings", select the website you want to change the directive. Choosing a site will open a content box underneath. To set it up, please enter the following:
     date.timezone = "<DesiredTimezone>"
    Here is an example you can follow: 
     date.timezone = "America/New_York"

    If you are not sure about the value representing your desired timezone, you can check all available timezone supported by PHP on PHP's official website.
  • After entering the needed timezone, please press the "Save" button located on the top right side of the content box.

 

Change PHP date.timezone directive through the MultiPHP INI Editor in cPanel

 

  • If the changes were accepted, you are going to receive a green notification message: "Success: Successfully saved the changes." on the top right side of the screen.

Was this article useful and on point?

Find out more about HostArmada entire range of optimized Web Hosting Services and take action today on improving your website Loading Speed, Security, and overall Stability!