@loafmarkets/ui 0.1.32 → 0.1.33

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.mjs CHANGED
@@ -10332,8 +10332,12 @@ var formatCurrency5 = (value, opts) => {
10332
10332
  var formatNumber2 = (value, maximumFractionDigits = 2) => value.toLocaleString("en-US", { minimumFractionDigits: 0, maximumFractionDigits });
10333
10333
  var formatTimestamp = (unix) => {
10334
10334
  if (!unix) return "\u2014";
10335
- const ts = unix > 1e15 ? Math.floor(unix / 1e6) : unix > 1e12 ? Math.floor(unix / 1e3) : unix;
10336
- return new Date(ts * 1e3).toLocaleString("en-AU", {
10335
+ let sec;
10336
+ if (unix > 1e18) sec = Math.floor(unix / 1e9);
10337
+ else if (unix > 1e14) sec = Math.floor(unix / 1e6);
10338
+ else if (unix > 1e12) sec = Math.floor(unix / 1e3);
10339
+ else sec = unix;
10340
+ return new Date(sec * 1e3).toLocaleString("en-AU", {
10337
10341
  day: "2-digit",
10338
10342
  month: "short",
10339
10343
  hour: "2-digit",