I'm trying to convert specific time to my local timezone that is Asia/Tehran with this code:
var date = new Date("9/9/2021 17:30 UTC +1").toLocaleString('en-US', {
"timeZone": "Asia/Tehran"
})
Based on this link https://www.timeanddate.com/worldclock/converter.html?iso=20211009T163000&p1=3903&p2=246 I should get 20:00 time. But I'm getting 21:00.
I know this is because of daylight times in Iran, But how can I consider daylight times when I want to use the JavaScript toLocaleString function?