mercredi 26 août 2015

DateTime class php cause bug in Laravel 5.1?

I used this code in my controller of a project using Laravel 5.1 :

$start_date = "2015-06-10";
$date = new DateTime($start_date);

But always I run code in server both Chrome and Firefox, my web seem to be "dead" in that line, it show the error : 500 Internal server error, and after many debug, I found that bug.

Anyone can give me solution to fix that, thanks :(



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1Ek4PvE
via IFTTT

Aucun commentaire:

Enregistrer un commentaire