Try and fix a postgres datetime issue
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-07-17 21:40:57 -04:00
parent 9c58bc2948
commit 2e9a3108f4

View File

@@ -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;
} }
} }