Fixing the issue where Laravel created_at and updatead_at times always appear as UTC when output as JSON
It's been a while since I posted... I was overwhelmed with real estate issues... In Laravel, the timezone is configured correctly, and when I retrieve records t
It's been a while since I posted... I was overwhelmed with real estate issues...
In Laravel, the timezone is configured correctly, and when I retrieve records that were saved properly and output them as objects, the time is displayed correctly (seemingly because Laravel applies its timezone when displaying it). However, if I output them as JSON in toArray() form, those time values (createad_at, updatead_at) are output as UTC.