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

datetimepicker() shows only time if options are shared with timepicker() #761

Open mkova opened 9 years ago

mkova commented 9 years ago

I had one format option for everything:

    YGWM.Page.DateTimeFormat = {
        dateFormat: 'yy-mm-dd',
        timeFormat: 'HH:mm:ss'
    };

When I called

datetimepicker(YGWM.Page.DateTimeFormat)

it worked correctly until I started using

timepicker(YGWM.Page.DateTimeFormat) 

After, every datetimepicker() had only time. When I introduced YGWM.Page.TimeFormat and used it on timepicker() everything worked again. So there's a bug when datetimepicker() and timepicker() share same option, or it's manifasted like that.

Thanks for the addon, it's great!