This project is archived and is in readonly mode.
[PATCH] time_select ..., :include_blank => true
-
Nolan Eakins
- Title changed from time_select ..., :include_blank => true to [PATCH] time_select ..., :include_blank => true
Here's a patch that adds a couple test cases and a fix for this problem. It's also available at http://github.com/sneakin/rails
-
Nolan Eakins
Here's a better approach than the above. It changes ActiveRecord::Base to add the date when it does a multiparameter assignment with only the hour and minute. The above is flawed when you select a blank hour and blank minute. The [Date]Time would still be created causing 0:00 to get selected.
-
Daniel Tsadok
I'm having the same problem with time_select, :prompt => true
-
Daniel Tsadok
Running Rails 2.3.2
-
Daniel Tsadok
So I'm using the twelve-hour-plugin so that's probably what's doing it.
-
Aditya Sanghi
- State changed from new to duplicate
- Importance changed from to
Please see ticket 4346 where we're still discussing this issue after 2 years. We've provided a patch with many more tests and comprehensively covers date/time/datetime issues as well as positional parameters among other issues.
Marking this as duplicate. Please provide your comments and review on #4346 time_select not interpreting the multi-parameter correctly.
