jeudi 30 novembre 2017

Displaying the correct datetime value in laravel

I have a blog created with Laravel 5.5, In PostController and in Create function i have specified the time format for "Published_at" cloumn to 24 format, and it's inserted correctly into database with the right format

Nov 30, 2017 | 17:11:19

But when i try to display the time in post page i got this format

30, 11, 2017 | 1:51:29 pm

I don't know why, i have tried to use "strtotime()" solution but i got wrong date and time

Jan 1,1970 | 01:00:00

I hope the problem clearly described



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire