Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Model replace set created_at and updated_at to 0000-00-00 #5229

Closed
allyblaise opened this issue Oct 21, 2021 · 5 comments
Closed

Model replace set created_at and updated_at to 0000-00-00 #5229

allyblaise opened this issue Oct 21, 2021 · 5 comments
Labels
waiting for info Issues or pull requests that need further clarification from the author

Comments

@allyblaise
Copy link

When using replace function to update or insert into the table it works but set created_at and updated_at to 0000-00-00.

codeigniter v4.1.4

@allyblaise allyblaise added the bug Verified issues on the current code behavior or pull requests that will fix them label Oct 21, 2021
@ytetsuro
Copy link
Contributor

ytetsuro commented Oct 21, 2021

@allyblaise

We would be happy if you could tell us what database driver you are using and the minimum code to reproduce.

@kenjis
Copy link
Member

kenjis commented Oct 22, 2021

Yes. We have the issue template:
https://github.com/codeigniter4/CodeIgniter4/blob/develop/.github/ISSUE_TEMPLATE/bug_report.md

If you follow it, it would be a great help for us.

@paulbalandan
Copy link
Member

Hi. Thanks for reporting. I believe there's already a fix in the latest develop branch: #4684 with respect to updated_at. For created_at, please check if $useTimestamps is set to true in your model.

@paulbalandan paulbalandan added waiting for info Issues or pull requests that need further clarification from the author and removed bug Verified issues on the current code behavior or pull requests that will fix them labels Oct 24, 2021
@paulbalandan paulbalandan changed the title Bug: Model replace set created_at and updated_at to 0000-00-00 Model replace set created_at and updated_at to 0000-00-00 Oct 24, 2021
@paulbalandan
Copy link
Member

@allyblaise are you able to confirm this? if not or no further feedback, i'll promptly close this.

@paulbalandan
Copy link
Member

Closing this as no feedback received.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting for info Issues or pull requests that need further clarification from the author
Projects
None yet
Development

No branches or pull requests

4 participants