I know that I can get the local timezone offset through the new Date (). getTimeZoneOffset (). But where did Javascript get this information? Is there a way I can set it so that all future Date objects have the offset that I want? I tried to find the DOM in Firebug but couldn't find anything.
What I'm trying to accomplish is to convert an era into a readable format, but it should be in US / Central, regardless of browser settings. Because I use US / Central, this is not a fixed difference from GMT. So instead of a bunch of super nasty conversion steps, why can't I just tell Javascript that I am in the US / Central?
javascript timezone
Douglas mauch
source share