Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Laravel set timestamp timezone

Tags:

laravel

Laravel has a timestamp that generates columns created_at and updated_at.

I want to ask what's the best way to set application timezone ? I want to set time zone for my application to GMT+8.

like image 664
Jan Ariel San Jose Avatar asked Aug 02 '17 05:08

Jan Ariel San Jose


1 Answers

Change timezone value in config/app.php like :

'timezone'  => 'Asia/Kathmandu',

I've added Asia/Kathmandu in context of Nepal. You can add your Time Zone over there.

Note: Don't forget to clear configuration cache.

like image 50
Sagar Gautam Avatar answered Nov 15 '22 08:11

Sagar Gautam