ok so datetime_select if you use the discard options
say { :discard_month => true }
when you just do update_attributes on said object
year would be correct
month would be the hour
date would be the minute
so if you select
year: 2005
hour: 12
minute: 13
the time object would go into the db as:
''2005-12-13 00:00:00''
so my question is how do i get the time object properly setup?
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails
replying to myself: i patched this up in date_helper as well as fixing discard_year being ignored bug by datetime_select patch submitted at: http://dev.rubyonrails.com/ticket/1248 Sean T Allen wrote:> ok so datetime_select if you use the discard options > > say { :discard_month => true } > > when you just do update_attributes on said object > > year would be correct > month would be the hour > date would be the minute > > so if you select > > year: 2005 > hour: 12 > minute: 13 > > the time object would go into the db as: > > ''2005-12-13 00:00:00'' > > so my question is how do i get the time object properly setup? > >_______________________________________________ >Rails mailing list >Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >http://lists.rubyonrails.org/mailman/listinfo/rails > >_______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails