Use `Time.zone.now` instead.

This commit is contained in:
Guo Xiang Tan 2017-03-05 11:09:19 +08:00
parent 9c7a02192a
commit 08ffbf6c61
1 changed files with 1 additions and 1 deletions

View File

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