This topic is locked

Date Timezone Setting Error

10/26/2019 4:14:30 AM
PHPRunner General questions
G
Gibbzey author

Hi,
I've created a new project in PHP Runner and i'm getting the below error when trying to access the project via my web hosting. Any ideas how to fix this?
Warning: trigger_error(): It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in Webserver/connections/Connection.php on line 611
Fatal error: Access denied for user
Thanks in advanced

M
mersintarim 10/26/2019

add this code on AfterSuccessfulLogin event

date_default_timezone_set('Europe/Istanbul');

CustomQuery("SET lc_time_names='tr_TR';");


adjust according to yourself

mic'',) 10/27/2019



add this code on AfterSuccessfulLogin event

date_default_timezone_set('Europe/Istanbul');

CustomQuery("SET lc_time_names='tr_TR';");


adjust according to yourself


Is there a list for all TimeZone/s?

like for Asia +8
Thanks in adv.

Sergey Kornilov admin 10/28/2019

Google "php timezone" or "php timezone Asia", first result.