PHP Warning date(): It is not safe to rely on the system’s timezone settings
PHP Warning date(): It is not safe to rely on the system’s timezone settings
資料來源: https://dotblogs.com.tw/jhsiao/2014/09/11/146510
<?php
date_default_timezone_set(“Asia/Taipei”);
echo date(“H:m:s”);
?>
One thought on “PHP Warning date(): It is not safe to rely on the system’s timezone settings”
PHP 的 date(): It is not safe
資料來源:http://wordpress.bestdaylong.com/blog/archives/16967
修改php.ini
[Date]
date.timezone = “Asia/Taipei”