1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-06-25 07:00:32 +02:00

Problèmes de date

This commit is contained in:
Yohann
2020-01-01 22:41:08 +01:00
parent d81ad02235
commit 64ffcedbcc
5 changed files with 8 additions and 9 deletions

View File

@ -120,7 +120,7 @@ class MyTeam
ensure(preg_match("#^[A-Z]{3}$#", $this->trigram), "Le trigramme n'est pas valide.");
ensure($this->trigram == $this->team->getTrigram() || !trigramExists($this->trigram), "Une équipe a déjà choisi ce trigramme.");
ensure($this->tournament != null, "Le tournoi indiqué n'existe pas.");
ensure(date("y-m-d H:i:s") <= $this->tournament->getInscriptionDate(), "Les inscriptions sont terminées.");
ensure(date("Y-m-d H:i:s") <= $this->tournament->getInscriptionDate(), "Les inscriptions sont terminées.");
ensure($this->team->getValidationStatus() == ValidationStatus::NOT_READY, "Votre équipe est déjà validée ou en cours de validation.");
}