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 Johnson E: bjohnson@contuitive.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060717/b63c1732/attachment.html
Ben Johnson 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 Ross http://tzinfo.rubyforge.org/ -- DST-aware timezone library for Ruby