PHP is printing wrong timezone. I've checked nearly everything. I will describe what I've checked and I am running.
Centos 7, PHP 7.2, Apache 2.4.6, Wordpress 5.1
Centos has America/Toronto timezone. Showing the time exactly. Wordpress has the same timezone. Post time also shows the correct time. Fixed time in php.ini -
date.timezone = "America/Toronto" (I made changes in the effective php.ini)
Still when I want to run this code - date('m/d/Y h:i:s a')
it give me UTC(which is not Toronto timezone) time. What am I missing?
Edit: I restarted server several times during making these changes
Thanks