It looks like the timestamp is attempting to be corrected into UTC, but odd that it's happening twice.
Could you check what your timezone value is set to in your config/app.php file?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi,
I have a problem with an app I am building. I am syncing orders from Shopifys API to a database.
The app has the following timezone: 'timezone' => 'Europe/Copenhagen'
The timestamps returned from Shopify is in the following format: 2022-07-04T11:32:18+02:00
When saving the timestamp to the database 2 hours are subtracted and when retrieving the model and outputting the timestamp another 2 hours are subtracted. Like this
Input: 2022-07-04T11:32:18+02:00
Database: 2022-07-04 09:32:18"
Output: 2022-07-04T07:32:18.000000Z
What am I doing wrong?
Please or to participate in this conversation.