Leading zeros option for day and month on datetime_select


I would like to add the ability to specify leading zeros on the day, and month (if :use_month_numbers is true), for ActionView::Helpers::DateHelper::datetime_select. I suggest an option :leading_zeros_month_and_day. Is this an enhancement that would be supported? If so I will submit a patch for the feature and tests.


Colin Law

Does the fact that no one has responded mean that it is thought that this is not worth doing? If so that is a pity as it is only a three or four lines of code and there is a willing volunteer here ready to do it. It seems to me that this would round off datetime_select nicely. Colin.

Sounds like a good idea to me and something I could use...


I have submitted a patch for this at http://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/1761-patch-to-add-leading-zeros-capability-to-datetime_select-and-date_select