ods-component-lib 1.15.0 → 1.16.0

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.
@@ -1195,7 +1195,13 @@ var customizeBooleanColumnRender = function customizeBooleanColumnRender(e) {
1195
1195
  }
1196
1196
  if (e.column.dataType === 'datetime') {
1197
1197
  if (e.value !== null) {
1198
- var formatedDate = moment(e.value).format('DD.MM.YYYY HH.mm (ZZ)');
1198
+ var date = moment(e.value);
1199
+ var offsetMinutes = date.utcOffset();
1200
+ var sign = offsetMinutes >= 0 ? '+' : '-';
1201
+ var hours = Math.floor(Math.abs(offsetMinutes) / 60);
1202
+ var minutes = Math.abs(offsetMinutes) % 60;
1203
+ var formattedOffset = "(UTC" + sign + hours.toString().padStart(2, '0') + ":" + minutes.toString().padStart(2, '0') + ")";
1204
+ var formatedDate = date.format('DD.MM.YYYY HH.mm') + " " + formattedOffset;
1199
1205
  return formatedDate;
1200
1206
  }
1201
1207
  }