Fix bootstrap-datetimepicker timezone setting

This commit is contained in:
Manson Wang 2014-03-05 10:19:42 +08:00
parent 8116a18b26
commit 61e8962f96
1 changed files with 1 additions and 0 deletions

View File

@ -175,6 +175,7 @@
this._date = this.parseDate(newDate);
} else {
this._date = new Date(newDate);
this._date.setTime( this._date.getTime() - this._date.getTimezoneOffset()*60*1000 );
}
this.set();
this.viewDate = UTCDate(this._date.getUTCFullYear(), this._date.getUTCMonth(), 1, 0, 0, 0, 0);