How to modify the PHP timezone setting?

If your website is hosted on shared hosting, you may not be able to change the Global time configuration of that server. However, you can surely add a PHP function called date_default_timezone_set for your website. Please refer to the following code to set the time zone that you required. 

<?php
date_default_timezone_set("America/Denver");
echo date_default_timezone_get();
?>

You can get the list of PHP timezone details from PHP > Timezone.

Related Articles

How to check your VPS Disk Drive is SSD or HDD?

We use HyperV virtualization technology for our Denver based Classic and SSD Windows VPS. We have...

How to renew SSL?

If you have an existing SSL Certificate purchased from Acuwebhosting, you just need to update us...

How Can I Test My Website Before Switching DNS?

It is always important to test your website on a new web host before you change the Nameservers...

Why my order is showing as a fraud?

We at Accuwebhosting have an automated order verification system that verifies your order...

How ImunifyAV+ is useful?

ImunifyAV+ is an effective anti-malware service. It is used to scan and detect the malware lied...

  • 0 Users Found This Useful

Was this answer helpful?