actualizar cada min

This commit is contained in:
Cat /dev/Nulo 2023-04-30 20:29:06 -03:00
parent 872268cb29
commit ec692186d5

View file

@ -14,7 +14,7 @@
.flatMap((d) => d.done.map((t) => ({ ...t, friend: d })))
.sort((a, b) => b.started - a.started);
const sTimer = timer(1000);
const hTimer = timer(1000 * 60 * 60);
const mTimer = timer(1000 * 60);
</script>
<section>
@ -51,7 +51,7 @@
})
)}
hace
{formatDistance($hTimer, new Date(thing.started + thing.took))}
{formatDistance($mTimer, new Date(thing.started + thing.took))}
</li>
{/each}
</ul>