From 7b6afd1dd207b3456f9285ccfcc83fb49a122e0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B1=E4=BC=9F=E8=B1=AA?= <120988989@qq.com> Date: Tue, 30 Aug 2022 09:35:04 +0800 Subject: [PATCH] callback_delete.go MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1.Change the time to the system default time,Avoid confusion of time --- callback_delete.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/callback_delete.go b/callback_delete.go index 48b97acbfb..3d8d6348c2 100644 --- a/callback_delete.go +++ b/callback_delete.go @@ -40,7 +40,7 @@ func deleteCallback(scope *Scope) { "UPDATE %v SET %v=%v%v%v", scope.QuotedTableName(), scope.Quote(deletedAtField.DBName), - scope.AddToVars(scope.db.nowFunc()), + scope.AddToVars(time.Now().Unix()), addExtraSpaceIfExist(scope.CombinedConditionSql()), addExtraSpaceIfExist(extraOption), )).Exec()