templates/app/controllers/user/user_application_controller.rb in cybele-1.9.1 vs templates/app/controllers/user/user_application_controller.rb in cybele-1.9.2
- old
+ new
@@ -2,14 +2,20 @@
class User::UserApplicationController < ActionController::Base
# layout 'user/application'
layout 'application'
- before_filter :set_audit_user
+ before_filter :set_audit_user, :set_user_time_zone
before_action :authenticate_user!
self.responder = ApplicationResponder
respond_to :html, :json
+
+ protected
+
+ def set_user_time_zone
+ Time.zone = current_user.time_zone if current_user.time_zone.present?
+ end
private
def set_audit_user
# Set audit current user
\ No newline at end of file