Draft: Fix: calcul de date au delà de 12 mois #488

Closed
vincent.vandeme wants to merge 3 commits from v1.4-fix-calendrier into v1.4
Showing only changes of commit 88e265e979 - Show all commits

View File

@ -329,7 +329,7 @@ export class RdDCalendrier extends Application {
/* -------------------------------------------- */
findHeure(heure) {
heure = Grammar.toLowerCaseNoAccent(heure);
heure = Grammar.toLowerCaseNoAccentNoSpace(heure);
let parHeureOuLabel = Object.values(heuresDef).filter(it => (it.heure + 1) == heure || Grammar.toLowerCaseNoAccentNoSpace(it.label) == heure);
if (parHeureOuLabel.length == 1) {
return parHeureOuLabel[0];