Answers for "carbon now set timezone"

PHP
0

carbon now set timezone

Carbon::now('UTC')

//or 
now('UTC')
Posted by: Guest on May-27-2021
0

laravel carbon set timezone

in the AppServiceProvider.php you can add the php functionality to alter the timestamp for the whole project

public function boot()
{
    Schema::defaultStringLength(191);
    date_default_timezone_set('Asia/Aden');
}
Posted by: Guest on June-28-2021
0

carbon now set timezone

Carbon::now('UTC')
Posted by: Guest on May-27-2021

Browse Popular Code Answers by Language