add image svg

This commit is contained in:
Romulus21
2023-10-01 23:19:08 +02:00
parent 1eb26151dd
commit 0ce75d59e3
18 changed files with 548 additions and 10 deletions

View File

@@ -1,4 +1,4 @@
const weekDays = ['lundi', 'mardi', 'mercredi', 'jeudi', 'vendredi', 'samedi', 'dimanche']
const weekDays = ['dimanche', 'lundi', 'mardi', 'mercredi', 'jeudi', 'vendredi', 'samedi']
interface Date {
getWeekDay(): string,
@@ -10,6 +10,5 @@ Date.prototype.toSQLDate = function (): string {
}
Date.prototype.getWeekDay = function () {
const dayIndex = this.getDay() === 0 ? 6 : this.getDay() - 1
return weekDays[dayIndex]
return weekDays[this.getDay()]
}