ods-component-lib 1.14.5 → 1.14.8

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.
@@ -1229,17 +1229,12 @@ function grid(props) {
1229
1229
  }
1230
1230
  };
1231
1231
  var customizeDatetimeText = function customizeDatetimeText(cellInfo) {
1232
- var windowLanguage = "";
1233
- if (typeof window.Intl === 'object') {
1234
- windowLanguage = window.navigator.language;
1235
- console.log(windowLanguage);
1236
- }
1237
1232
  var dateTimeValue = cellInfo.value;
1238
1233
  if (dateTimeValue) {
1239
- var formattedDate = new Date(dateTimeValue).toISOString();
1240
- return formattedDate;
1234
+ var formatedDate = moment(cellInfo.value).format('DD.MM.YYYY HH.mm (ZZ)');
1235
+ return formatedDate;
1241
1236
  }
1242
- return '';
1237
+ return cellInfo.value;
1243
1238
  };
1244
1239
  return React.createElement(React.Fragment, null, React.createElement("div", {
1245
1240
  className: "odsDatagrid",