This project is archived and is in readonly mode.
date_select’s :discard_month and :discard_day choose different default days
-
Diego Carrion
When using discard_day, the day chosen is the first day of the month to avoid things like 31/02/2011.
-
Edward Ocampo-Gooding
Diego: right, except that when :discard_month implicitly sets :discard_day, the first day of the month is not chosen.
-
2kan
Edward, it is not a bug. It is how it is designed: https://github.com/rails/rails/blob/master/actionpack/lib/action_vi...
Yes, maybe it looks strange a bit, but I don't think that it is a good idea to change it now.