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.cjs CHANGED
@@ -2002,10 +2002,6 @@ var DataTable = function DataTable(props) {
2002
2002
  a = Number(a);
2003
2003
  b = Number(b);
2004
2004
  }
2005
- if (a === b) {
2006
- // If the values are the same, do not switch positions.
2007
- return 0;
2008
- }
2009
2005
 
2010
2006
  // If b > a, multiply by -1 to get the reverse direction.
2011
2007
  return a > b ? direction : -1 * direction;
@@ -2369,6 +2365,18 @@ var DataTableCell = function DataTableCell(_ref6) {
2369
2365
  return /*#__PURE__*/React__default["default"].createElement("img", {
2370
2366
  src: cell
2371
2367
  });
2368
+ case "DATETIME":
2369
+ var locale = window.navigator.userLanguage || window.navigator.language;
2370
+ var date = new Date(cell);
2371
+ date.setMinutes(date.getMinutes() + date.getTimezoneOffset() + 1);
2372
+ return /*#__PURE__*/React__default["default"].createElement("span", null, date.toLocaleString(locale, {
2373
+ year: 'numeric',
2374
+ month: 'numeric',
2375
+ day: 'numeric',
2376
+ hour: 'numeric',
2377
+ minute: 'numeric',
2378
+ second: 'numeric'
2379
+ }));
2372
2380
  default:
2373
2381
  return cell;
2374
2382
  }