0

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.

Sequoya
  • 433
  • 4
  • 16

1 Answers1

0

You have value in minutes. Convert it into hours dividing value by 60

maxkuku
  • 188
  • 4
  • 7