I am curious to know what the result would be next year? How javascript adjusts the result behind the scene?
const date = new Date();
date.getTimezoneOffset();
A few things:
getTimezoneOffset will return the correct time zone offset for the point in time reflected by the Date object it's called on.
new Date(), you're asking for the current time zone offset, so it will continue to behave as it does today (returning either the standard or the daylight offset that is in effect) until November 5th, 2023. Then it will return the updated offset from then forward.