I have date from SQL database in the following format and its not being converted to local time properly even though moment object shows that its a proper UTC time.
var date = moment.utc('/Date(1622491200000)/').local().format('YYYY-MM-DD HH:mm:ss')
console.log('date', date); // date 2021-06-01 01:00:00
Output should be **2021-06-01 06:00:00**