When I run the PHP function
date('H:i'), it returns 23:42. However, it's currently 00:42 where I live, one hour later. When I run
\Carbon\Carbon::now(), it tells me the correct time of 00:42. I've set my timezone to be Europe/Amsterdam in the /config/app.php.
Can anyone here explain why this happens and what I can do about it? My guess is that it's got something to do with daylight saving time, but I'm not at all sure.
The problem seems to have fixed itself. I had already changed the 'UTC' to Europe/Amsterdam, but it didn't work immediately. After about half an hour it's all working fine though.