When my MySQl dates are null, PHP returns them as '-0001-11-30 00:00:00'.
I know this is because I am using Europe timezone but how can I handle this?
I keep getting:
InvalidArgumentException in Carbon.php line 425:
Unexpected data found.
in Carbon.php line 425
at Carbon::createFromFormat('Y-m-d H:i:s', '-0001-11-30 00:00:00') in Model.php line 2915
How can I fix this?
Mick
NB: This is different from : How do you explain the result for a new \DateTime('0000-00-00 00:00:00')?
It is different because I am asking what I am supposed to do about it.