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

CreatedAt and UpdatedAt are initialized with different timestamps #15206

Closed
do4gr opened this issue Sep 6, 2022 · 1 comment
Closed

CreatedAt and UpdatedAt are initialized with different timestamps #15206

do4gr opened this issue Sep 6, 2022 · 1 comment
Labels
bug/2-confirmed Bug has been reproduced and confirmed. kind/bug A reported bug. team/client Issue for team Client. topic: updatedAt

Comments

@do4gr
Copy link
Member

do4gr commented Sep 6, 2022

The values for createdAt are instantiated once per received query during query parsing. The value for updatedAt is created later on a per model basis. This leads to updatedAt and createdAt potentially being out of sync upon first creation. It also leads to more calls to instantiate timestamps.

@do4gr do4gr added bug/2-confirmed Bug has been reproduced and confirmed. team/client Issue for team Client. topic: updatedAt labels Sep 6, 2022
@do4gr
Copy link
Member Author

do4gr commented Sep 6, 2022

Closing as duplicate of #12572

@do4gr do4gr closed this as completed Sep 6, 2022
@janpio janpio added the kind/bug A reported bug. label Sep 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/2-confirmed Bug has been reproduced and confirmed. kind/bug A reported bug. team/client Issue for team Client. topic: updatedAt
Projects
None yet
Development

No branches or pull requests

2 participants