I have referred similar questions too, but nothing seems helpful to me. (Angular Moment : Moment Timezone has no data for America/New_York)
document.getElementById("output").innerText = moment.tz("IST"); //throws error
document.getElementById("output1").innerText = moment.tz("Asia/Kolkata");
document.getElementById("output2").innerText = moment.tz.names().includes("IST") // returns false
document.getElementById("output3").innerText = moment.tz.names().includes("Asia/Kolkata")
https://cdnjs.cloudflare.com/ajax/libs/moment-timezone/0.5.31/moment-timezone-with-data.js has data for IST, but why the moment is throwing error when IST is used? Do i need to manually add IST to timezone? Also, moment.tz.names() doesn't have IST in it, is that the reason for the error?