In TP5, use the model to obtain a piece of data, and then output the error. It is found that the timestamp is formatted by TP5 using the date () method, but the create_time set in my data table is of the timestamp type and is obtained. It is already a formatted string, so an error is reported. .
Later I saw an official method: set the datetime_format value to false to turn off automatic conversion output
But I tried it to no avail. What should I do? Can you be more specific?
Controller code:
Model code:
data sheet:
Error screenshot:
Consider adding it after line 433