Ruby on Rails Tips and Tricks

Dec 22, 2021

Setting up time zones on the client side

Make the following changes in the controller

  around_action :set_time_zone, if: :current_user

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


Great! You've successfully subscribed.
Great! Next, complete checkout for full access.
Welcome back! You've successfully signed in.
Success! Your account is fully activated, you now have access to all content.