This project is archived and is in readonly mode.
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
-
Neeraj Singh July 18th, 2010 @ 02:24 PM
- State changed from new to wontfix
José Valim is right. No one needs it. :-)
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
Tags
Referenced by
- 5136 no need of ternary operation I created another ticket #5140 to deal with the inconsist...