Categories

A sample text widget

Etiam pulvinar consectetur dolor sed malesuada. Ut convallis euismod dolor nec pretium. Nunc ut tristique massa.

Nam sodales mi vitae dolor ullamcorper et vulputate enim accumsan. Morbi orci magna, tincidunt vitae molestie nec, molestie at mi. Nulla nulla lorem, suscipit in posuere in, interdum non magna.

How to Change Your Default Timezone in .htaccess (for hosting account)

 

 

You can change your hosting account time zone through .htaccess. By default this .htaccess file would be hidden text file under your hosting account. Please follow below instructions to edit / update .htaccess file to change DNS Zone:

Update timezone in .htacccess file using File Manager (cPanel hosting account)

  • Logon to your cPanel acccount >> File Manager
  •  if you not able to see .htaccess file, please click on Settings in File Manager and Select ‘Show Hidden Files’. Save it.
  • Select .htacccess file and click on Edit button
  • Type below lines and click on save button to save changes:

                  #Set default time zone for hosting account

         SetEnv TZ America/NewYork

  • 4: All is done.

How to change timezone in .htaccess through ssh / command shell

  • If you have access to SSH, please logon to your server with cPanel account
  • Edit .htacccess with your favorite shell editor , like nano or vi and save changes

    nano /home/yourcpaccount/public_html/.htaccess

Comments are closed.