サーバーを変更した後、次のエラーを受け取りました...
<b>Warning</b>: date() [<a href='function.date'>function.date</a>]: 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 'America/New_York' for
'EST/-5.0/no DST' instead in <b>/sessions.php</b> on line <b>8001</b>
このエラー メッセージが参照する行は...
$date = date('Y-m-d G:i:s');
私はそれがどのように機能するかわかりませんか?
では、ユーザーのタイムゾーンを取得して、それを組み込みの PHP 変数として設定するか、または で使用するにはどうすればよいdate()
でしょうか?