Problem fixed!
The issue was in the locale.conf file. The language parameter was blank and needed to be set to US.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi everyone, I have a Laravel 5.5 application on Ubuntu that we recently moved to Azure, along with our SQL database. The DB contains many DATE fields in the format YYYY-MM-DD. If we do a dd() of the data in our on-premise application, this is the same format that gets returned. For example
"date" => "2024-01-30"
However, the same dd() in the Azure version of the application returns
"date" => "Jan 30 2024 12:00:00:AM"
Both the Azure app and the on-premise app pull from the same DB in Azure. I can't figure out how or why the Azure version is changing the date format. It's causing all kinds of time parsing errors in the application. I know it's possible to use preg_replace to fix the formatting, but we have over 1400 Carbon calls in the app and I'd rather not recode every one of them. Plus, it bugs me that I can't trust that the data I'm pulling is in the same form as it is in the database. I don't see any obvious differences in server time configuration settings. Any ideas on what's causing the problem?
Please or to participate in this conversation.