Setting up time zones on the client side

Make the following changes in the controller

  around_action :set_time_zone, if: :current_user

  private
    def set_time_zone(&block)
      Time.use_zone('Quito', &block)
    end

Ruby on Rails Tips and Tricks