Allowing users to select their timezone

I'm making an app that allows players to find each other. I'd like to allow players to select their timezone when they create their profile. Is there an easy way I can do that?

Posted over 4 years ago by Mark Borden
Posted over 4 years ago by Alex Yang

Time zones can be pretty tricky in Rails, but it's definitely doable once you've wrapped your head around it. You'll want to add a new column to your User (or Player) database to store the timezone field. Here's a good tutorial on how to achieve this:

Hope that helps! Let me know how it goes.