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

Timezone label is not updating on input field #959

Open ujwol opened 5 years ago

ujwol commented 5 years ago

hi, When we define a timezonelist, and then when selecting the label from the dropdown the control displays the offset number not the label.

e.g I used code below $('#timezone_example_2').datetimepicker({ timeFormat: 'HH:mm z', timezoneList: [ { value: -300, label: 'Eastern'}, { value: -360, label: 'Central' }, { value: -420, label: 'Mountain' }, { value: -480, label: 'Pacific' } ] });

from the dropdown list I selected "Pacific" but on the input field I still see "03/22/2019 06:15 -0800"