The reasons for deprecation in Java are explained here.
Doesn't the same reasoning apply for Javascript?
The reasons for deprecation in Java are explained here.
Doesn't the same reasoning apply for Javascript?
Well, it does return minutes, not hours. So it can represent offsets correctly.
But its recently come to my attention that it is horribly broken, thanks to a bad decision in the ECMAScript 5.1 spec. See JavaScript Time Zone is wrong for past Daylight Saving Time transition rules
so I wouldn't rely on it anyway. No great solution yet, but watch this space. I will update this answer as I learn more.