How to set local timezone in laravel
问题 Is there a way to set local timezone in laravel? In config/app.php 'timezone' => 'UTC', What should be added so that timezone value above uses local timezone? After some research, stumbled upon the following PHP way of dealing with it: $userTimezone = Auth::user()->timezone; date_default_timezone_set($userTimezone); // and change the configuration so they match Config::set('app.timezone', $userTimezone) But, Is there an elegant solution for this other than converting the timezone using the