Hi 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. Regards Colin Law --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
Colin Law
2009-Jan-13 20:07 UTC
Re: Leading zeros option for day and month on datetime_select
On Jan 11, 2:10 pm, Colin Law <clan...@googlemail.com> wrote:> Hi > > 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. > > Regards > > Colin LawDoes 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. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
Sounds like a good idea to me and something I could use... -T On Jan 13, 12:07 pm, Colin Law <clan...@googlemail.com> wrote:> On Jan 11, 2:10 pm, Colin Law <clan...@googlemail.com> wrote: > > > Hi > > > 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. > > > Regards > > > 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.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
Colin Law
2009-Jan-15 14:35 UTC
Re: Leading zeros option for day and month on datetime_select
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 Colin 2009/1/13 Tony <tony.rodriguez@gmail.com>> > Sounds like a good idea to me and something I could use... > > -T > > On Jan 13, 12:07 pm, Colin Law <clan...@googlemail.com> wrote: > > On Jan 11, 2:10 pm, Colin Law <clan...@googlemail.com> wrote: > > > > > Hi > > > > > 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. > > > > > Regards > > > > > 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. > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---