1
0

Big changes on API and Frontend

This commit is contained in:
Jose
2025-03-11 23:58:11 +01:00
parent 0e5e93cb73
commit 6cc3c6525e
19 changed files with 389 additions and 142 deletions

11
frontend/src/util/date.js Normal file
View File

@@ -0,0 +1,11 @@
const timestampToTime = (timestamp) => {
const date = new Date(timestamp);
return date.toLocaleTimeString();
}
const timestampToDate = (timestamp) => {
const date = new Date(timestamp);
return date.toLocaleDateString();
}
export { timestampToTime, timestampToDate };