This project is archived and is in readonly mode.

#5140 ✓wontfix
Neeraj Singh

expsose :leading_zeros to public API

Reported by Neeraj Singh | July 17th, 2010 @ 09:15 PM | in 3.x

As per current code drop down for day in f.datetime will never have leading_zeros. However the minutes will have leading_zeros.

The drop down value for day will not have leading_zeros and the 'false' is hardcoded there so no user option will do anything there.

However minutes part of datetime can be governed by user input.

I would say that :leading_zeros should be exposed to public API and year, month, day, hour, minute and seconds should obey :leading_zeros option passed by user. Right now some have hard coded value and some obey user input.

I am working on a patch.

Comments and changes to this ticket

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

Referenced by

Pages