Timezone List
=== List of time zones you can use for your dropdown forms.
Installation
$ npm install timezonelist-js
Usage
var tzlist = // require('timezonelist-js') assuming tzlist in used on the backend and passed as javascript object to front-endvar select = document //get your <select></select> element for var i = 0; i < tzlistlength; i++ var timezone = tzlisti selectoptionsi = timezonetext timezonevalue
Custom text
var text = timezoneplace + ' (UTC' + timezonetime + ')'selectoptionsi = text timezonevalue
Output
{ id: 'Pacific/Midway', value: '(UTC-11:00) Midway Island', place: 'Midway Island', time: '-11:00' }