Back to Top

How to Set the Time Zone in Modx

Sometimes MODx revolution gives the fatal error at the time of installation.I got following fatal error on the setup page when I was trying to install MODx revolution

This might happen when installing an MODx revolution.so Today I am going to explain how you can resolve this installation error of MODx and to Set the Time Zone in Modx.

Read about: Conditional Chunk in Modx

Let’s see how to Set your Time Zone for PHP 5.3+:

It’s a simple process and I will describe two different approaches:

Method 1: Time Zone in php.ini

If you have access to your php.ini file, you can set timezone from php.ini file.Simply open your php.ini file and enable the date.timezone and place your zone value

date.timezone = [timezone]

Method 2: Time Zone in .htaccess

This is the alternative method, if you don’t have access to edit your php.ini file, you can set time zone by placing the following line into the .htaccess

php_value date.timezone [timezone]

NOTE: you can fine the list of supported Time Zones here

Thanks for reading and feel free to share your thoughts! Don’t Forget to Follow us on Twitter or Subscribe us to Get the Latest Updates.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Most Popular Posts

How to enable Debug Console in X-cart?

Posted on 6 years ago

Bhumi

How to set 301 Redirection in PHP

Posted on 4 years ago

Bhumi

How to setup Facebook PageTab Popup

Posted on 6 years ago

Bhumi

PHP 7 new Features at a Glance

Posted on 4 years ago

Bhumi

Hello world

Updated 1 month ago

Nick Carter

In depth Understanding of Laravel Core

Updated 3 months ago

Bhumi

ECMAScript 6 New Features – 2

Updated 1 year ago

Bhumi

The Reader’s Poll – June 2015

Posted on 4 years ago

Bhumi

The Reader’s Poll – August 2014

Posted on 5 years ago

Bhumi

The Reader’s Poll – June 2014

Posted on 5 years ago

Bhumi

The Readers’ Poll – May 2014

Posted on 5 years ago

Bhumi

The Readers’ Poll – August 2013

Posted on 6 years ago

Bhumi