This project is archived and is in readonly mode.

#1612 ✓resolved
Luis Hurtado

Can't create AR models with custom updated_xx timestamp.

Reported by Luis Hurtado | December 22nd, 2008 @ 12:12 AM | in 2.x

When creating ActiveRecord objects with custom date/time for updated_at or updated_on attributes, custom value is ignored and use current time instead. Example:


custom_time = 1.hour.ago.beginning_of_day
forum = Forum.create(:title => "The Colombian Forum", :updated_at => custom_time)

Currently it is possible to create ActiveRecord objects with custom created_at or created_on attributes.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Pages