How to change timezone laravel version 5.4 with specific UTC
Solution 1
It depends upon your requirements, Here is the list of supported time zones Supported Time Zones Select any region and see the list of zones name. Eg: I selected America which is America Time Zone
Eg: Laravel Default timezone is set like this,
'timezone' => 'UTC',
So you can pass your desire Timezone like this
'timezone' => 'America/Los_Angeles',
Or
'timezone' => 'America/Aruba',
Solution 2
You can use this
And edit your app.php file:
'timezone' => 'UTC',
Ryan Aquino
I am a Software Developer with industry experience working in both server management and software engineering. I love coding and have a serious passion for creating excellent software solutions specializing in backend. In my spare time I like building my own products at the same time learn new technology. Skills/Interests: HTML, CSS, JavaScript, Python, Flask, SQL, Git, MVC, Unit testing, API, Microservice Architecture
Updated on July 15, 2020Comments
-
Ryan Aquino almost 4 years
how do you set your timezone to a specific GMT or UTC in the app.php on your laravel project
-
Ryan Aquino almost 7 yearsThank you ! problem solved! thanks for that reference