Laravel 4.2 created_at column displays "Format separator error"

I am trying to access the created_at column in one of my models and I am getting the following error:

The format separator does not match. The format separator does not match. The format separator does not match.

The error is actually repeated 3 times.

This is how I am trying to access the column:

$model->created_at

      

I don't have a timestamp set in my model and I can access other columns just fine.

What is the problem?

+3


source to share


1 answer


Have you overridden getDateFormat () in your model?

I ran into this problem last week. The problem is with the date and time format. I have a link that explains the error.
https://github.com/laravel/framework/pull/4181



If you've overridden getDateFormat (), comment out the function and see if it works.

If not, make sure the date and time format in your database isn't scary.

+4


source







All Articles