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

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -