I was doing a bit of learning about PHP from an online school and was following along and was introduced to this message in terminal and wanted to know if anyone can help me understand why this is happening. Is this because of a setting I have on my local computer or is this a setting somewhere else because the instructor for this course didn't write any additional code for this.
PHP 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.
Find the php.ini file and add the appropriate value under date.timezone
The values are here: http://www.php.net/manual/en/datetime.configuration.php#ini.date.timezone
To find out where your php.ini file is, use php -i on the command line, or <?php phpinfo(); through the web server. The Loaded Configuration file should give you the full path to the php.ini file.
Restart the web server after updating the php.ini file.