1. Home
  2. References
  3. Technical Advice
  4. Languages
  5. How to Change PHP Time (Time Zone)

How to Change PHP Time (Time Zone)

Contents

This article explains how to change the PHP time zone.

N0C users can do this by following the instructions detailed in the article How to Change the Time Zone.

Procedure

Simply add this to your .htaccess file:

SetEnv TZ Continent/City

For example:

SetEnv TZ Europe/Paris

Here is the list of supported time zones: https://www.php.net/manual/en/timezones.php.

Updated on 27 February 2026

Was this article helpful?

Related Articles