fullstackhero / dotnet-starter-kit

Production Grade Cloud-Ready .NET 8 Starter Kit (Web API + Blazor Client) with Multitenancy Support, and Clean/Modular Architecture that saves roughly 200+ Development Hours! All Batteries Included.

Home Page:https://fullstackhero.net/dotnet-webapi-boilerplate/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Auditable Entity [BUG]

Diyar opened this issue · comments

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