Answers for "laravel carbon timezone"

PHP
1

carbon add minutes

Carbon::now()->addMinutes($minutes)->timestamp;
Posted by: Guest on November-24-2020
0

carbon add few hours

Carbon::now('UTC')->addHour($hours)->format('Y-m-d H:i:s')
Posted by: Guest on November-10-2020
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