Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Multiparameter Attributes incorrectly do time zone conversion on time-only columns

#1030

Multiparameter Attributes are doing a time zone conversion for attributes assigned to a time-only column, resulting in the wrong time being sent to the database.

To fix this, we just need to do a check in ActiveRecord::Base#instantiate_time_object for the column type, and only do a time zone conversion for :datetime and :timestamp columns.

Reported by Geoff Buesing · September 12th, 2008 @ 12:07 AM

State: resolved
Milestone: 2.1.2
Assigned to: Geoff Buesing Geoff Buesing
Importance: High

Activity

  1. Michael Koziarski
    Michael Koziarski
    • Milestone set to 2.1.2

    I agree this should also be fixed in 2-1-stable. So I've updated the milestone accordingly, just remember to fix it in both before closing the ticket ;)

    September 12th, 2008 @ 02:34 PM

  2. Repository
    Repository
    • State changed from new to resolved

    (from [d95943b276d52c5bc4f033e532376667badbad9f]) Multiparameter attributes skip time zone conversion for time-only columns [#1030 Multiparameter Attributes incorrectly do time zone conversion on time-only co... state:resolved] http://github.com/rails/rails/co...

    September 15th, 2008 @ 12:17 AM

  3. Repository
    Repository

    (from [8bd62e31682b6fa3deb499c6a5338906fc559188]) Multiparameter attributes skip time zone conversion for time-only columns [#1030 Multiparameter Attributes incorrectly do time zone conversion on time-only co... state:resolved] http://github.com/rails/rails/co...

    September 15th, 2008 @ 12:35 AM