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

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -