I read in the rails recipes book that it is best to store times as
UTC in the database. How do I do this? My server is located in GMT -6
CST. Do I need to change my server to use UTC or what?
Thanks for your help.
Thank You,
Ben J.
E: [email protected]
Ben J. wrote:
I read in the rails recipes book that it is best to store times as UTC
in the database. How do I do this? My server is located in GMT -6 CST.
Do I need to change my server to use UTC or what?
This is covered in the wiki:
http://wiki.rubyonrails.com/rails/pages/HowtoSetDefaultTimeZone
–
Philip R.
http://tzinfo.rubyforge.org/ – DST-aware timezone library for Ruby