Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #2965 (closed defect: duplicate)

Opened 3 years ago

Last modified 2 years ago

ActiveRecord uses default date format to update database

Reported by: rails@jeroenheijmans.com Assigned to: David
Priority: normal Milestone:
Component: ActiveRecord Version: 1.1.1
Severity: minor Keywords:
Cc:

Description

Not 100% sure this is a defect (it may be intended), but I changed the default formatting of dates (as described in http://wiki.rubyonrails.com/rails/pages/HowToDefineYourOwnDateFormat/). However, this format is also the one used by ActiveRecord to write in my database. This works fine as long as the default format is the :db format, but it doesn't understand my format, so no date is inserted in the database.

Change History

07/25/06 18:44:04 changed by ben@greenriver.org

  • version changed from 0.14.3 to 1.1.1.

I just got bitten by this. Why doesn't the insert code just always use the :db format rather than :default?

01/14/07 16:40:59 changed by bitsweat

  • status changed from new to closed.
  • resolution set to duplicate.