I have an issue where I have set the timezone in Lumen's config to Europe/London. This has been working perfectly well until the recent change to DST where it is setting the correct created_at and updated_at dates, but when I'm calling the record it is showing the datetimes as though it was UTC and not BST/DST.
In my config/app.php file I have;
...
timezone' => 'Europe/London',
...
In my routes for checking, I have;
$app->get('mytime', function() {
$now = Carbon\Carbon::now();
dd($now, date('Y-m-d H:i:s'));
});
which returns
Carbon {#35 ▼
+"date": "2016-04-14 10:33:15.000000"
+"timezone_type": 3
+"timezone": "Europe/London"
}
yet when I pull a record which say should have a created_at date of '2016-04-14 10:00:00' it returns '2016-04-14 09:00:00'.
Any help with this timezone issue would be gratefully received.