Can you guys see here: http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/251ff7b5a1dce93a/50e40fbb176f4b79 I''m totally at a loss. Running rails 2.3.5, ruby 1.8.7 enterprise, mysql 5.0.77 All datetimes (created_at, updated_at, any others that I''ve added) are nil via my remote webserver, yet they''re present in the console. They''re also present in the database. They''re also present via @model.created_at_before_type_cast Everything works flawlessly on my local macbook. Advice/Help please?! Thanks, Jeff -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
jemminger
2010-Feb-18 17:45 UTC
Re: datetimes nil in ActiveRecord, but present in database?
Nevermind all: I was also setting ActiveRecord::Base.default_timezone in my application_controller, likely to a value other than the symbol :utc. Removing this fixed it. On Feb 18, 12:28 pm, jemminger <jemmin...@gmail.com> wrote:> Can you guys see here: > > http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/... > > I''m totally at a loss. Running rails 2.3.5, ruby 1.8.7 enterprise, > mysql 5.0.77 > > All datetimes (created_at, updated_at, any others that I''ve added) are > nil via my remote webserver, yet they''re present in the console. > They''re also present in the database. They''re also present via > @model.created_at_before_type_cast > > Everything works flawlessly on my local macbook. > > Advice/Help please?! > > Thanks, > Jeff-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.