langleyfoxall / laravel-boilerplate

Boilerplate for Laravel with common tools/plugins for ease of development.
MIT License
2 stars 4 forks source link

Add config for timezone and add default for London #29

Open NilesB opened 5 years ago

jaredkove commented 5 years ago

This saves me MANY headaches in prod... :)

DivineOmega commented 5 years ago

I'm not sure what I feel about this. Best practice is to store all date times in UTC, and then convert when displaying them and/or performing calculations/comparisons.

However, this does ease development of applications for UK focused application that rely heavily on date times.

jameswilddev commented 5 years ago

My thoughts echo those of @DivineOmega; integrating with services which use local time is a real pain, especially with edge cases on DST. If the service is purely for UK use this isn't so bad.