I want to convert the UTC ISO 8601 date string into the user's local date time based on the user's Time Zone. I'm using moment-timezone to accomplish this task, and here is the code snippet:
const userTimezone = moment.tz.guess();
const time = moment.utc("2023-03-08T16:35:21.453")
.tz(userTimezone)
.format("MM/DD/YYYY h:mm A")
Does Moment Timezone consider the DST rules of the selected time zone and apply the appropriate DST offset to the formatted time?
If my date string falls under DST then will it automatically adjust for DST offset while formatting or do we have to adjust for DST Offset manually?