1<select value={this.state.timezone} onChange={this.onSelect}>
2 {Timezones.map((timezone) => <option value={timezone.value}>{timezone.name}</option>)}
3</select>
4
1const dateToTime = date => date.toLocaleString('en-US', {
2 hour: 'numeric',
3 minute: 'numeric'
4});
5
6const dateString = "2019-05-05T10:30:00Z";
7const userOffset = new Date().getTimezoneOffset()*60*1000;
8const localDate = new Date(dateString);
9const utcDate = new Date(localDate.getTime() + userOffset);
10
11console.log(`${dateToTime(utcDate)} (${dateToTime(localDate)} Your Time)`);