jquery - Can't set automatically TimeZone in TimePicker -
using timepiker want set timezone:
$('#timestart').timepicker({ showtimezone: true, timeformat: "hh:mm tt", timezonelist: [ { 'value': '-720', 'label': '(gmt-12:00) international date line west' }, { 'value': '-660', 'label': '(gmt-11:00) midway island, samoa' } .... { 'value': '+840', 'label': '(gmt+14:00) time in samoa' } ] });
timepiker initialized , zones added in selector selected value first list not detected if set manually option timezone: '+840' work
why timezone not detect automatically?
i found solution,instead of
{ 'value': '-720', 'label': '(gmt-12:00) international date line west' }
is need use
{ value: -720, label: '(gmt-12:00) international date line west' }
Comments
Post a Comment