Mongoid UTC Times

By default Mongoid will store your Time objects in your local timezone. It's not made clear on the installation page, but all you have to do is add "use_utc: true" to the defaults in your mongoid.yml configuration file. Yes Virginia, it's that simple.

Are you a Git user? Let me help you make project management with Git simple. Checkout Gitpilot.


If you made it this far, you should follow me on Twitter.


comments powered by Disqus