All threads / Auto-detect User Time Zones in Rails Discussion

Ask A Question

Notifications

You’re not receiving notifications from this thread.

Auto-detect User Time Zones in Rails Discussion

Great video Chris, time zones can be extremely frustating to work with. I would caution against setting time zone in a before action across all controllers. I did something similar and ended up in a default scope sort of situation where it was helpful but then I had to selectively turn that off for a lot of requests.

Reply

another well explained video! I have been struggling with how to handle timezones for some time now!

Reply
Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 39,376+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2020 GoRails, LLC. All rights reserved.