Welcome Guest, Not a member yet? Register   Sign In
DB Insert Timing
#11

$useTimestamps is a property in Model.
See https://codeigniter4.github.io/CodeIgnit...your-model

I recommend you read the user guide. It explains a lot of things you need to know.
Reply
#12

(01-18-2023, 06:04 PM)kenjis Wrote: $useTimestamps is a property in Model.
See https://codeigniter4.github.io/CodeIgnit...your-model

I recommend you read the user guide. It explains a lot of things you need to know.

Both you and the user guide state that the default is false. I posted my Model and I didn't change it, so it should still be false, but when I add the "created_at" field to the model, it puts in the time stamp.

Ignoring that issue/point for a moment, it still doesn't answer my original question. Why do two inserts that happen a minute or more apart use the same CI timestamp value?
Reply




Theme © iAndrew 2016 - Forum software by © MyBB