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

thirteen + 19 =

Next ArticleAn easy music player using Pi MusicBox and Raspberry PI