Create movements table

This commit is contained in:
2025-04-22 11:05:26 +02:00
parent 5cc1cbc814
commit 5db816ca9a
2 changed files with 98 additions and 8 deletions

View File

@ -0,0 +1,13 @@
export function DateWidget(p: { time: number }): React.ReactElement {
const date = new Date(p.time * 1000);
return (
<>
{pad(date.getDate())}/{pad(date.getMonth() + 1)}/{date.getFullYear()}
</>
);
}
function pad(num: number): string {
return num.toString().padStart(2, "0");
}