찾다

 >  Q&A  >  본문

php日期问题

<?php
echo "今天是 " . date("Y/m/d") . "<br>";

?>
出现这个是什么原因

892670031-581ee02140c15_articlex.png

Strict Standards: date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for '8.0/no DST' instead in F:appappserverAppServwwwdate1.php on line 7
浠婂ぉ鏄� 2016/11/08

高洛峰高洛峰2959일 전434

모든 응답(1)나는 대답할 것이다

  • 三叔

    三叔2016-11-08 11:04:43

    应该是时区不对 设置下时区

    회신하다
    0
  • 취소회신하다