link backend Post Patch Delete Lesson

This commit is contained in:
2024-04-16 22:03:48 +02:00
parent 9112004326
commit a2be04bfb3
17 changed files with 282 additions and 79 deletions

View File

@ -1,4 +1,5 @@
import {ref} from 'vue'
export function formatDate(date) {
var d = new Date(date),
month = '' + (d.getMonth() + 1),
@ -108,6 +109,7 @@
export function getHoursMinutes(date){
const d = new Date(date);
return d.getHours()+ ":" + d.getMinutes();
let hours = [d.getHours().toString().length == 1 ? "0" + d.getHours().toString() : d.getHours()];
return hours+ ":" + d.getMinutes();
}