From 08ffbf6c618f4d8cc8eba938124f64b2b26c45ad Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Sun, 5 Mar 2017 11:09:19 +0800 Subject: [PATCH] Use `Time.zone.now` instead. --- app/models/user.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/user.rb b/app/models/user.rb index 738bdf5a092..f6c297da9b4 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -274,7 +274,7 @@ class User < ActiveRecord::Base self.approved_by = approved_by end - self.approved_at = Time.now + self.approved_at = Time.zone.now if result = save send_approval_email if send_mail