ywana-core8 0.1.73 → 0.1.74

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.umd.js CHANGED
@@ -1995,10 +1995,6 @@
1995
1995
  a = Number(a);
1996
1996
  b = Number(b);
1997
1997
  }
1998
- if (a === b) {
1999
- // If the values are the same, do not switch positions.
2000
- return 0;
2001
- }
2002
1998
 
2003
1999
  // If b > a, multiply by -1 to get the reverse direction.
2004
2000
  return a > b ? direction : -1 * direction;
@@ -2362,6 +2358,18 @@
2362
2358
  return /*#__PURE__*/React__default["default"].createElement("img", {
2363
2359
  src: cell
2364
2360
  });
2361
+ case "DATETIME":
2362
+ var locale = window.navigator.userLanguage || window.navigator.language;
2363
+ var date = new Date(cell);
2364
+ date.setMinutes(date.getMinutes() + date.getTimezoneOffset() + 1);
2365
+ return /*#__PURE__*/React__default["default"].createElement("span", null, date.toLocaleString(locale, {
2366
+ year: 'numeric',
2367
+ month: 'numeric',
2368
+ day: 'numeric',
2369
+ hour: 'numeric',
2370
+ minute: 'numeric',
2371
+ second: 'numeric'
2372
+ }));
2365
2373
  default:
2366
2374
  return cell;
2367
2375
  }