getTimezoneOffse: do what I want it to

What is the right way to associate a timezone with a Date object. Date
object does not keep timezone information.

var d = new Date("2014-05-01T00:00+08:00");
d.getTimezoneOffset() / 60


If I want Shanghai timezone, I would have to create a decorator for
the Date. I wish there was some way to deal with that in EcmaScript.
When did this come up last? Sorry I probably missed it. Any threads I
should read up on?


Received on Monday, 21 April 2014 22:28:06 UTC