How to set my TimeZone via PHP?

To use your timezone instead of the server's timezone, simply open your php.ini file located in the public_html directory or create a new files name php.ini if you are not using Custom PHP setting and add the following line:

 

date.timezone="TIME_ZONE_HERE"


where TIME_ZONE_HERE is the specific timezone you want to define.

A list of Supported Timezones can be found here:


http://www.php.net/manual/en/timezones.php

  • 0 Users Found This Useful
Was this answer helpful?