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.
- package/dist/index.js +9 -15
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +9 -15
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -1229,21 +1229,15 @@ function grid(props) {
|
|
|
1229
1229
|
}
|
|
1230
1230
|
};
|
|
1231
1231
|
var customizeDatetimeText = function customizeDatetimeText(cellInfo) {
|
|
1232
|
-
var
|
|
1233
|
-
if (
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
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
|
};
|