Using php 5.4.34 And Laravel 4 with apache 2.2.22 and Ubuntu.
I try to convert the string '2050-10-13' to a date and it always return false.
var_dump(strtotime('2050-10-13')); ==> false
var_dump(strtotime('13-10-2050')); ==> false
var_dump(strtotime('2050/10/13')); ==> false
var_dump(strtotime('13/10/2050')); ==> false
I tried to add before :
date_default_timezone_set('Europe/Brussels');
OR
date_default_timezone_set('Europe/Paris');
I doesn't change anything.
in app/config/app.php I have :
'timezone' => 'UTC',
'locale' => 'en',
What could be the problem ??