diff --git a/callbacks.go b/callbacks.go index e21e0718..3c5b02e1 100644 --- a/callbacks.go +++ b/callbacks.go @@ -6,7 +6,6 @@ import ( "fmt" "reflect" "sort" - "time" "gorm.io/gorm/schema" "gorm.io/gorm/utils" @@ -72,8 +71,8 @@ func (cs *callbacks) Raw() *processor { } func (p *processor) Execute(db *DB) { - curTime := time.Now() stmt := db.Statement + curTime := db.NowFunc() if stmt.Model == nil { stmt.Model = stmt.Dest