laravel - Changed the timezone but still getting UTC -


i have changed timezone laravel app africa\cairo, , changed in app.php file

|-------------------------------------------------------------------------- | application timezone |-------------------------------------------------------------------------- | | here may specify default timezone application, | used php date , date-time functions. have gone | ahead , set sensible default out of box. | */  'timezone'        => 'africa/cairo', 

but when check in prodduction time zone using carbon::now(), timezone utc

how can set timezone in carbon

simply use carbon::now('africa/cairo'). should correct time.

hope helps.


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -