Topic: Date and time Issue

I m using a shared hosting. and do not have access to my php.ini file.

How can i change the default timezone to my actual timezone.

I have tried the following
- change the .httaccess file - nothing happens
- change the .config.php file - nothing happens

Please help me resolve this.

2 (edited by notrinos 10/01/2019 03:14:33 pm)

Re: Date and time Issue

Add this function to includes/date_functions.inc can solve the problem

date_default_timezone_set('Asia/Ulaanbaatar');
Phuong

Re: Date and time Issue

Lines 25-26 in config.php:

    if (!ini_get('date.timezone'))
        ini_set('date.timezone', 'Asia/Kolkata');

Comment out the first line above and edit the second as needed.

Re: Date and time Issue

Thanks a lot