This project is archived and is in readonly mode.
Multiparameter Attributes incorrectly do time zone conversion on time-only columns
Reported by Geoff Buesing | September 12th, 2008 @ 12:07 AM | in 2.1.2
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.
Comments and changes to this ticket
-
Michael Koziarski September 12th, 2008 @ 02:34 PM
- 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 ;)
-
Repository September 15th, 2008 @ 12:17 AM
- State changed from new to resolved
(from [d95943b276d52c5bc4f033e532376667badbad9f]) Multiparameter attributes skip time zone conversion for time-only columns [#1030 state:resolved] http://github.com/rails/rails/co...
-
Repository September 15th, 2008 @ 12:35 AM
(from [8bd62e31682b6fa3deb499c6a5338906fc559188]) Multiparameter attributes skip time zone conversion for time-only columns [#1030 state:resolved] http://github.com/rails/rails/co...
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
Tags
Referenced by
- 1030 Multiparameter Attributes incorrectly do time zone conversion on time-only columns (from [d95943b276d52c5bc4f033e532376667badbad9f]) Multipa...
- 1030 Multiparameter Attributes incorrectly do time zone conversion on time-only columns (from [8bd62e31682b6fa3deb499c6a5338906fc559188]) Multipa...