@esfaenza/es-table 11.2.97 → 11.2.99

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.
@@ -825,7 +825,7 @@
825
825
  /** Effettua l'esportazione del file Excel basandosi sul modulo **ExcelJS**, sugli header **this.est.headers** e sui dati **this.est.data** */
826
826
  ExportHandler.prototype.exportExcel = function () {
827
827
  return __awaiter(this, void 0, void 0, function () {
828
- var iFix, workbook, sheet, header, i, h, i, row, item, i_1, h, cell, val, buffer, blob, objectUrl, fn;
828
+ var iFix, workbook, sheet, header, i, h, i, row, item, i_1, h, cell, val, date, correctedDate, buffer, blob, objectUrl, fn;
829
829
  return __generator(this, function (_b) {
830
830
  switch (_b.label) {
831
831
  case 0:
@@ -853,11 +853,16 @@
853
853
  else {
854
854
  switch (h.type) {
855
855
  case 'date':
856
- cell.value = this.dateExts.getDateConvertion(val).toDate();
856
+ date = this.dateExts.getDateConvertion(val);
857
+ correctedDate = dayjs(date).add(dayjs().utcOffset(), 'minute');
858
+ cell.value = correctedDate.toDate();
859
+ break;
857
860
  case 'number':
858
861
  cell.value = parseFloat(val.replace(',', '.'));
862
+ break;
859
863
  default:
860
864
  cell.value = val;
865
+ break;
861
866
  }
862
867
  }
863
868
  }