Prace na sprave letu

This commit is contained in:
Michal Kváček
2023-06-07 08:56:52 +02:00
parent 25bf93589e
commit 4d9950e362
15 changed files with 267 additions and 154 deletions
@@ -3,3 +3,10 @@ export const minutesToHumanReadable = (totalMinutes) => {
const minutes = totalMinutes % 60;
return `${hours}h ${minutes}min`
}
export const formatDate = (date) => {
if (typeof date === 'string') {
date = new Date(date);
}
return date.getDate()+". "+date.getMonth()+". "+date.getFullYear();
}