There was a problem loading the comments.

How do I specify the time zone for my PHP website?

Support Portal  »  Knowledgebase  »  Viewing Article

  Print
Sometimes it is necessary for your PHP scripts to work using a specific time zone, for example, if you're serving customers in a certain area of the world.

By default, our platform is set to be Europe/London.

To apply your own timezone, the following can be added to the sites .user.ini file. This file is located in the public_html folder. If this is not present create a file in the public_html directory called .user.ini (note the . before the file name).

date.timezone=TIMEZONE


In this case, TIMEZONE must be a permitted timezone, as per https://www.php.net/manual/en/timezones.php

Share via
Did you find this article useful?  

Related Articles

© Eco Web Hosting