Laravel, time zones and carbon

Laravel defaults to storing all dates in UTC format, this is highly recommended as UTC time never changes unlike other time zones which have daylight savings. It is best practice to store and read dates in UTC, and then convert UTC to your required time zone for the user interface.

Great article below of a good way to implement time zones using Carbon within your Laravel app.

https://andrew.cool/blog/49/Easy-timezones-in-Laravel-with-Carbon

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.