I'm using date function $now=date("Y-m-d H:i:s");
in php 5.6.30,
The browser output is string(19) "2017-04-21 02:54:54"
,That's abnormal.
php.ini set is date.timezone = PRC
Centos 7 system time:
[root@localhost sync]# date
Fri Apr 21 14:53:20 CST 2017
While I was installed the PHP 7.0.16 in the same system, php.ini has the same config, but the date output normal in date function(is 24 digit time). Why happen this and how to let the date normal working.