How To Change Default Time Zone in .htaccess

How To Change Your Default Timezone in .htaccess

You can always change your time to any default time you prefer for your scripts in .htaccess.

To set your timezone according to your physical address or location in .htaccess;

 

 

  • Log into your account using SSH or file manager in cpanel
  • Click on settings at the right corner and select the document root then click save
  • In the directory look for .htaccess and right click to edit
  • Paste a code reading as( #adjust default time zone

setEnv UG/Africa/kampala.(define your area address)

  • Click on save for a new configuration of .htaccess

Was this article helpful?

Related Articles

Leave A Comment?