ods-component-lib 1.14.3 → 1.14.4

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.
package/dist/index.js CHANGED
@@ -1233,11 +1233,21 @@ function grid(props) {
1233
1233
  }
1234
1234
  };
1235
1235
  var customizeDatetimeText = function customizeDatetimeText(cellInfo) {
1236
- debugger;
1237
- var dateTimeValue = cellInfo.value;
1238
- if (dateTimeValue) {
1239
- var formattedDate = new Date(dateTimeValue).toISOString();
1240
- return formattedDate;
1236
+ var dateString = cellInfo.value;
1237
+ if (dateString) {
1238
+ var _dateString$split = dateString.split('T'),
1239
+ fullDate = _dateString$split[0],
1240
+ time = _dateString$split[1];
1241
+ var _fullDate$split = fullDate.split('-'),
1242
+ year = _fullDate$split[0],
1243
+ month = _fullDate$split[1],
1244
+ date = _fullDate$split[2];
1245
+ var _time$split = time.split(':'),
1246
+ hour = _time$split[0],
1247
+ minute = _time$split[1],
1248
+ second = _time$split[2];
1249
+ var dateTime = new Date(date, month, year, hour, minute, second);
1250
+ return dateTime.toISOString();
1241
1251
  }
1242
1252
  return '';
1243
1253
  };