Try and fix a postgres datetime issue
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -46,9 +46,9 @@ public abstract class AppDbContext : DbContext
|
|||||||
foreach(var entry in entries) {
|
foreach(var entry in entries) {
|
||||||
if (entry.State == EntityState.Added)
|
if (entry.State == EntityState.Added)
|
||||||
{
|
{
|
||||||
((BaseEntity)entry.Entity).DateCreated = DateTime.Now;
|
((BaseEntity)entry.Entity).DateCreated = DateTime.UtcNow;
|
||||||
}
|
}
|
||||||
((BaseEntity)entry.Entity).DateModified = DateTime.Now;
|
((BaseEntity)entry.Entity).DateModified = DateTime.UtcNow;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user