Error in Laravel DateTime :: __ construct (): Failed to parse time string

2

Create a virtual host and when entering the URL, sometimes I open the laravel page and others throw me that DateTime error, how can I solve it? I found this:

link

I do the php artisan key: generate but nothing happens, what follows below the post to change the format of the dates $ datetime = DateTime :: createFromFormat ('md-Y', '06 -23-2014 ') ; I do not understand where to do it, I repeat, do not program anything yet, sometimes I load the Laravel page and sometimes I get the error that I mention.

    
asked by Juan 12.03.2018 в 03:39
source

1 answer

2

Everything seems to indicate that it is a mistake of Carbon (The package that handles the dates in Laravel) in its version 1.24.1

According to its creators, it was already fixed quickly in version 1.24.2:

link

    
answered by 12.03.2018 / 13:18
source