@esfaenza/extensions 11.2.34 → 11.2.36

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.
@@ -1112,7 +1112,7 @@
1112
1112
  // Se ho un formato data trasformo in dayjs, formatto ed esporto
1113
1113
  // Per la trasformazione in dayjs provo prima a passargli la stringa di netto, sperando la riconosca
1114
1114
  // Se non funziona provo a definirgli la formattazione standard del metering per quel linguaggio
1115
- var val_2 = this.dates.getFormatted(obj[prop], format.length <= 10, false);
1115
+ var val_2 = this.dates.getFormatted(obj[prop], format.length <= 10, format.length > 16);
1116
1116
  Object.defineProperty(obj, prop + "_fmt", { value: val_2 !== null && val_2 !== void 0 ? val_2 : "", writable: false, enumerable: true });
1117
1117
  headers.push({ label: lbl ? lbl : prop + "_fmt", key: prop + "_fmt", order: order, type: "date" });
1118
1118
  }
@@ -1155,7 +1155,7 @@
1155
1155
  type = "number";
1156
1156
  }
1157
1157
  else if (format) {
1158
- value = this.dates.getFormatted(value, format.length <= 10, false);
1158
+ value = this.dates.getFormatted(value, format.length <= 10, format.length > 16);
1159
1159
  type = "date";
1160
1160
  }
1161
1161
  Object.defineProperty(obj, prop, { value: value, writable: false, enumerable: true });
@@ -1209,7 +1209,7 @@
1209
1209
  type = "number";
1210
1210
  }
1211
1211
  else if (valueformat) {
1212
- value = this_1.dates.getFormatted(obj[prop], valueformat.length <= 10, false);
1212
+ value = this_1.dates.getFormatted(obj[prop], valueformat.length <= 10, valueformat.length > 16);
1213
1213
  type = "date";
1214
1214
  }
1215
1215
  Object.defineProperty(obj, prop + idx, { value: value, writable: false });