Friday, March 16, 2018

php artisan config:clear warning date_default_timezone_get() - development

php artisan config:clear warning date_default_timezone_get()

I’m trying to execute php artisan config:clear I’ve been doing this without problems for last 6 months, and now after a composer update I’m getting this error:

[root@XXX]# php artisan config:clear

PHP Warning: date_default_timezone_get(): It is not safe to rely on the system’s timezone settings. You are required to useezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting thiu most likely misspelled the timezone identifier. We selected the timezone ‘UTC’ for now, but please set date.timezone to seleone. in /var/www/html/cne-pnp/vendor/monolog/monolog/src/Monolog/Logger.php on line 311

In Loader.php line 228:

Dotenv values containing spaces must be surrounded by quotes.

I don’t know what to do now, it’s making a warning from vendor files… and I can’t clear my cache now. Any hint?



from Laravel Questions and Answers https://laravelquestions.com/laravel/php-artisan-configclear-warning-date_default_timezone_get/
via Lzo Media

1 comment:

  1. You make writing seem so easy. Your blog is just fantabulous! Your website is the ultimate user-friendly platform that I have ever worked with php developer london You do not get lost here. I have seen some great online places like and I must say, your web page stands on par with them.

    ReplyDelete