mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 13:06:56 +08:00
Use Time.zone.now
instead.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user