jq beginner jq beginner - 1 year ago 85
PHP Question

default time zone is not changing using php or php.ini

i'm trying to change the default time zone using php but not working


and tried using php.ini


but in phpinfo i get this

Default timezone Europe/Berlin
date.timezone Europe/Berlin Europe/Berlin

and when inserting time to MySQL using CURTIME() i don't get Asia/Riyadh time and get a wrong time
update (timezone changed after awhile but using CURTIME() to insert date into mysql doesn't enter the right time

Answer Source

in php.ini


and in my script

$nowtime = date("G:i:s");
$nowdate = date("Y-m-d");
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download