ods-component-lib 1.14.2 → 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 +15 -4
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +15 -4
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1233,10 +1233,21 @@ function grid(props) {
|
|
|
1233
1233
|
}
|
|
1234
1234
|
};
|
|
1235
1235
|
var customizeDatetimeText = function customizeDatetimeText(cellInfo) {
|
|
1236
|
-
var
|
|
1237
|
-
if (
|
|
1238
|
-
var
|
|
1239
|
-
|
|
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();
|
|
1240
1251
|
}
|
|
1241
1252
|
return '';
|
|
1242
1253
|
};
|