1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-06-25 18:17:28 +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

@ -1,8 +1,7 @@
<?php
require_once "header.php";
if (date("yyyy-mm-dd") < $tournament->getSolutionsDate()) {
if (date("Y-m-d H:i:s") < $tournament->getSolutionsDate()) {
echo "<div class=\"alert alert-danger\"><h4>Il est trop tôt pour se préoccuper des notes de synthèse, attendez le tirage des poules.</h4></div>";
require_once "server_files/views/footer.php";
}
@ -13,7 +12,7 @@ if (isset($save_synthesis) && !$has_error) { ?>
</div>
<?php } ?>
<?php if (date("yyyy-mm-dd") < $tournament->getSynthesesDate()) { ?>
<?php if (date("Y-m-d H:i:s") < $tournament->getSynthesesDate()) { ?>
<form method="post" enctype="multipart/form-data">
<input type="hidden" name="MAX_FILE_SIZE" value="5000000"/>
<div class="form-row">