I have the folowing Problem. I am saving a Carbon or DateTime object in a Variable.
$now = Carbon::now('Europe/Berlin');
If I am using this command the first time. Everything works fine. But on the one Day later it returns the last Date and Time generated on the Day before.
For example:
At this moment it is the correct Date and Time would be: 2018-12-14 13.48:00 but
dd($now);
returns
Carbon @1544733487 {#555 ▼
date: 2018-12-13 21:38:07.319843 Europe/Berlin (+01:00)
}
I am using Laravel 5.7 and i have tested it on my mac and on my shared hosting provider.
I don't have any idea what i am doing wrong. I would be happy if you can help me.
Regards Christian