Fix bootstrap-datetimepicker timezone setting
This commit is contained in:
parent
8116a18b26
commit
61e8962f96
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue