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.
@@ -1503,8 +1503,14 @@
1503
1503
  if (dt === null) {
1504
1504
  return '';
1505
1505
  }
1506
- var d = parseInt(dt.substring(6, dt.length - 2), 10);
1507
- return moment__namespace(d).locale(locale).format(format + 'z');
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;