ps-toolkit-ui 1.18.12 → 1.18.14
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/bundles/ps-toolkit-ui.umd.js +8 -2
- package/bundles/ps-toolkit-ui.umd.js.map +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js.map +1 -1
- package/esm2015/lib/classes/helper.class.js +9 -3
- package/fesm2015/ps-toolkit-ui.js +8 -2
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/package.json +1 -1
- package/ps-toolkit-ui.metadata.json +1 -1
|
@@ -1503,8 +1503,14 @@
|
|
|
1503
1503
|
if (dt === null) {
|
|
1504
1504
|
return '';
|
|
1505
1505
|
}
|
|
1506
|
-
var
|
|
1507
|
-
|
|
1506
|
+
var m = void 0;
|
|
1507
|
+
if (typeof dt === 'string' && dt.length === 10) {
|
|
1508
|
+
m = moment__namespace(dt, 'YYYY/MM/DD');
|
|
1509
|
+
}
|
|
1510
|
+
else {
|
|
1511
|
+
m = moment__namespace(parseInt(dt.substring(6, dt.length - 2), 10));
|
|
1512
|
+
}
|
|
1513
|
+
return m.locale(locale).format(format + 'z');
|
|
1508
1514
|
}
|
|
1509
1515
|
catch (e) {
|
|
1510
1516
|
return dt;
|