mirror of
https://github.com/discourse/discourse.git
synced 2025-03-09 14:34:35 +00:00
Use Time.zone.now
instead.
This commit is contained in:
parent
9c7a02192a
commit
08ffbf6c61
@ -274,7 +274,7 @@ class User < ActiveRecord::Base
|
|||||||
self.approved_by = approved_by
|
self.approved_by = approved_by
|
||||||
end
|
end
|
||||||
|
|
||||||
self.approved_at = Time.now
|
self.approved_at = Time.zone.now
|
||||||
|
|
||||||
if result = save
|
if result = save
|
||||||
send_approval_email if send_mail
|
send_approval_email if send_mail
|
||||||
|
Loading…
x
Reference in New Issue
Block a user