DateTime.now => Time.zone.now
This commit is contained in:
parent
4f1cc8a2f0
commit
13ffa61435
26 changed files with 39 additions and 39 deletions
|
@ -43,7 +43,7 @@ class Admin::AttestationTemplatesController < AdminController
|
|||
@title = activated_attestation_params[:title]
|
||||
@body = activated_attestation_params[:body]
|
||||
@footer = activated_attestation_params[:footer]
|
||||
@created_at = DateTime.now
|
||||
@created_at = Time.zone.now
|
||||
|
||||
# In a case of a preview, when the user does not change its images,
|
||||
# the images are not uploaded and thus should be retrieved from previous
|
||||
|
|
|
@ -52,7 +52,7 @@ class Admin::GestionnairesController < AdminController
|
|||
if User.exists?(email: @gestionnaire.email)
|
||||
GestionnaireMailer.user_to_gestionnaire(@gestionnaire.email).deliver_later
|
||||
else
|
||||
User.create(email: email, password: password, confirmed_at: DateTime.now)
|
||||
User.create(email: email, password: password, confirmed_at: Time.zone.now)
|
||||
end
|
||||
flash.notice = 'Instructeur ajouté'
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue