Skip to main content
If timestamps in your applications are off by a few hours, the PHP timezone likely doesn’t match your local timezone. You can change it in cPanel.

Changing the timezone via MultiPHP INI Editor

  1. Log in to cPanel.
  2. In the Software section, click MultiPHP INI Editor.
  3. Select your domain from the dropdown.
  4. Switch to Editor Mode (the raw editor).
  5. Add or update this line:
  1. Save.
Replace Europe/London with your timezone from the official list: https://www.php.net/manual/en/timezones.php.

Changing the timezone via PHP Selector

If your server uses the CloudLinux PHP Selector:
  1. In cPanel, click Select PHP Version.
  2. Click Options.
  3. Find date.timezone and set your timezone.

Verifying

Create a file called tz.php in your document root:
Visit yourdomain.com/tz.php — it should show your timezone and the correct current time. Delete the file afterwards.
Applications may have their own timezone settings that override PHP’s — WordPress (Settings → General), for example. Set both for consistent behavior. For more background, see Setting timezones in PHP.