I wrote the below code to convert singapore time to UTC time.
function convert(time) {
let eventStartTime = moment(time, 'HH:mm', 'Singapore').utc().format('HH:mm');
return eventStartTime;
}
when I ran the below line
convert('19:00');
It is giving me the output as 23:00 which is incorrect. What am I doing wrong?