15,064
edits
| Line 114: | Line 114: | ||
=== 錯誤訊息: It is not safe to rely on the system's timezone settings === | === 錯誤訊息: It is not safe to rely on the system's timezone settings === | ||
* 訊息: Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting 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 the timezone 'UTC' for now, but please set date.timezone to select your timezone. | * 訊息: Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting 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 the timezone 'UTC' for now, but please set date.timezone to select your timezone. | ||
* 原因: | * 原因: 沒有設定時區 | ||
* 解決方法: | * 解決方法: 使用 date() 或 strtotime() 等[http://php.net/manual/en/ref.datetime.php 時間相關函數]之前,先設定時區,例 {{kbd | key = <nowiki>date_default_timezone_set("Asia/Taipei")</nowiki>}} | ||
=== 移除非預期的空白(全形空白) === | === 移除非預期的空白(全形空白) === | ||