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

Auditable Entity [BUG] #876

Open
Diyar opened this issue Jul 16, 2023 · 0 comments
Open

Auditable Entity [BUG] #876

Diyar opened this issue Jul 16, 2023 · 0 comments

Comments

@Diyar
Copy link

Diyar commented Jul 16, 2023

I have discovered two issues with the "CreatedOn" and "LastModifiedOn" fields during updates:

1- Sometimes, when I update a single record, both "CreatedOn" and "LastModifiedOn" fields are updated for multiple records. However, the expected behavior is that only the "LastModifiedOn" field should be updated for the specific record being updated.

2- While creating a record, the "CreatedOn" field should be populated with the current time. However, when updating a record, the "CreatedOn" timestamp is being altered by several hours, which is not the intended behavior.

As I know the problem caused by time-zone during retrieving and saving data even we do not change anything in the record!

As a side note: I'm using PostgreSQL database

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant