Javascript Date toClientTimezone()
toClientTimezone()
Date.prototype.toClientTimezone = function () { var offset = new Date().getTimezoneOffset(); this.setTime(this.getTime() + (offset * 60 * 1000)); return this;/*from w ww . ja va 2s. co m*/ }