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

 

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

發表迴響

你的電子郵件位址並不會被公開。 必要欄位標記為 *