When I get the timezone offset with: getTimezoneOffset, I get the value like 360, 270, etc. I want to get the UTC (negative or positive) offset like: -6 -5 -2.
How can I do that?
Thanks.
You have value in minutes. Convert it into hours dividing value by 60