You don't "fix" that, Rails store the dates using the UTC timezone so it can show it in ANY other timezone in the views, active record will automatically change all dates to your current timezone when showing them in the view.
- Maurício Linhares http://codeshooter.wordpress.com/ | http://twitter.com/mauriciojr On Fri, Jun 12, 2009 at 9:40 PM, Bruno Sousa<[email protected]> wrote: > > Hi everyone, > I am using sqlite3-ruby for my rails application. > My computer timezone is -3:00 GMT. But when a entry is saved in sqlite3 > database it records 0:00 GMT timestamps. > If it is 14:00 now, created_at timestamp will be 17:00. > > How can I fix that? > -- > Posted via http://www.ruby-forum.com/. > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

