add image svg
This commit is contained in:
@@ -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()]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user