@loafmarkets/ui 0.1.99 → 0.1.100
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.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2767,7 +2767,8 @@ var formatDateShort = (value) => {
|
|
|
2767
2767
|
if (diffS < 60) return "Just now";
|
|
2768
2768
|
if (diffS < 3600) return `${Math.floor(diffS / 60)}m ago`;
|
|
2769
2769
|
if (diffS < 86400) return `${Math.floor(diffS / 3600)}h ago`;
|
|
2770
|
-
|
|
2770
|
+
const time = d.toLocaleTimeString(void 0, { hour: "numeric", minute: "2-digit", hour12: true });
|
|
2771
|
+
return `${time} \xB7 ${d.toLocaleDateString(void 0, { month: "short", day: "numeric" })}`;
|
|
2771
2772
|
};
|
|
2772
2773
|
var formatTimeAgo = (timestamp) => {
|
|
2773
2774
|
const diff = (Date.now() - new Date(timestamp).getTime()) / 1e3;
|