@ngx-mce/datetime-picker 22.0.2-next.3 → 22.0.2-next.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5093,8 +5093,8 @@ class NgxMatDatetimePickerContentV2 {
5093
5093
  }
5094
5094
  _combineDateTime(date, time) {
5095
5095
  const clonedDate = this._dateAdapter.clone(date);
5096
- const jsDate = this._dateAdapter.toIso8601(clonedDate);
5097
- const dateObj = new Date(jsDate);
5096
+ const dateObj = new Date();
5097
+ dateObj.setFullYear(this._dateAdapter.getYear(clonedDate), this._dateAdapter.getMonth(clonedDate), this._dateAdapter.getDate(clonedDate));
5098
5098
  dateObj.setHours(time[0] || 0);
5099
5099
  dateObj.setMinutes(time[1] || 0);
5100
5100
  dateObj.setSeconds(time[2] || 0);