How to Set Timezone in Laravel 5

Here’s a quick tip which can be useful if you want to change the default timezone of your Laravel application.

Must Read : Renaming Database Tables in Laravel

To change timezone for your web application, navigate to config/app.php file and look for following code,

| Application Timezone
| Here you may specify the default timezone for your application, which
| will be used by the PHP date and date-time functions. We have gone
| ahead and set this to a sensible default for you out of the box.

'timezone' => 'UTC',

And replace UTC with your own timezone. For example you can change it to something like,

'timezone'  => 'Asia/Kolkata',

Additional Information : List of PHP Supported Timezones


Leave a Comment.