diff --git a/templates/app/controllers/application_controller.rb.erb b/templates/app/controllers/application_controller.rb.erb index 3c48a29..5339bb1 100644 --- a/templates/app/controllers/application_controller.rb.erb +++ b/templates/app/controllers/application_controller.rb.erb @@ -27,7 +27,7 @@ class ApplicationController < ActionController::Base protected def set_user_time_zone - Time.zone = current_user.time_zone if student_signed_in? && current_student.time_zone.present? + Time.zone = current_user.time_zone if user_signed_in? && current_user.time_zone.present? end def devise_parameter_sanitizer