@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.mjs
CHANGED
|
@@ -2741,7 +2741,8 @@ var formatDateShort = (value) => {
|
|
|
2741
2741
|
if (diffS < 60) return "Just now";
|
|
2742
2742
|
if (diffS < 3600) return `${Math.floor(diffS / 60)}m ago`;
|
|
2743
2743
|
if (diffS < 86400) return `${Math.floor(diffS / 3600)}h ago`;
|
|
2744
|
-
|
|
2744
|
+
const time = d.toLocaleTimeString(void 0, { hour: "numeric", minute: "2-digit", hour12: true });
|
|
2745
|
+
return `${time} \xB7 ${d.toLocaleDateString(void 0, { month: "short", day: "numeric" })}`;
|
|
2745
2746
|
};
|
|
2746
2747
|
var formatTimeAgo = (timestamp) => {
|
|
2747
2748
|
const diff = (Date.now() - new Date(timestamp).getTime()) / 1e3;
|