Ruby on Rails Tips and Tricks Dec 22, 2021 Setting up time zones on the client sideMake 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 Tags ruby on rails Subscribe to our newsletter Get the latest posts delivered right to your inbox. Your email address Subscribe Now check your inbox and click the link to confirm your subscription. Please enter a valid email address Oops! There was an error sending the email, please try later. Kelvin Kang Recommended for you Cancancan 7 months ago • 1 min read Yarn Install failing with build error on macOS a year ago • 1 min read development tools Visual Studio Code Cheat Sheets 2 years ago • 1 min read