ods-component-lib 1.14.4 → 1.14.5

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,21 +1229,15 @@ function grid(props) {
1229
1229
  }
1230
1230
  };
1231
1231
  var customizeDatetimeText = function customizeDatetimeText(cellInfo) {
1232
- var dateString = cellInfo.value;
1233
- if (dateString) {
1234
- var _dateString$split = dateString.split('T'),
1235
- fullDate = _dateString$split[0],
1236
- time = _dateString$split[1];
1237
- var _fullDate$split = fullDate.split('-'),
1238
- year = _fullDate$split[0],
1239
- month = _fullDate$split[1],
1240
- date = _fullDate$split[2];
1241
- var _time$split = time.split(':'),
1242
- hour = _time$split[0],
1243
- minute = _time$split[1],
1244
- second = _time$split[2];
1245
- var dateTime = new Date(date, month, year, hour, minute, second);
1246
- return dateTime.toISOString();
1232
+ var windowLanguage = "";
1233
+ if (typeof window.Intl === 'object') {
1234
+ windowLanguage = window.navigator.language;
1235
+ console.log(windowLanguage);
1236
+ }
1237
+ var dateTimeValue = cellInfo.value;
1238
+ if (dateTimeValue) {
1239
+ var formattedDate = new Date(dateTimeValue).toISOString();
1240
+ return formattedDate;
1247
1241
  }
1248
1242
  return '';
1249
1243
  };