trentrichardson / jQuery-Timepicker-Addon

Adds a timepicker to jQueryUI Datepicker
http://trentrichardson.com/examples/timepicker/
MIT License
2.66k stars 1.05k forks source link

hourMax smaller than hourMin #678

Open ghost opened 10 years ago

ghost commented 10 years ago

I need my client to specify an hour in the night so I put

hourMin: 19h hourMax: 8h

Shouldn't this be valid? (an error is thrown)

trentrichardson commented 10 years ago

This value needs to be an integer, so leave off the h.. 19 and 8 On Dec 17, 2013 12:17 PM, "Hugo Bento" notifications@github.com wrote:

I need my client to specify an hour in the night so I put

hourMin: 19h hourMax: 8h

Shouldn't this be valid? (an error is thrown)

— Reply to this email directly or view it on GitHubhttps://github.com/trentrichardson/jQuery-Timepicker-Addon/issues/678 .

ghost commented 10 years ago

Sure, sorry for my error here. Anyways the error exists...

sroe commented 10 years ago

You could use 2 timepicker with 19 till 24 lies on the first date and 0 till 8 lies on the second, or you customize the behavior for time slider. By default timepicker only supports picking time between 0 and 24 h. So @trentrichardson this is a feature request I think.

qdelettre commented 9 years ago

This kind of time picking would be great. I need it too, so customers could pick time between a night range only (21:00 to 5:00 for exemple).