mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2025-06-25 08:20:30 +02:00
Amélioration des fichiers d'ajout de tournoi
This commit is contained in:
@ -12,6 +12,6 @@ function formatDate($date = NULL, $with_time = false) {
|
||||
return strftime("%d %B %G" . ($with_time ? " %H:%M" : ""), strtotime($date));
|
||||
}
|
||||
|
||||
function dateWellFormed($date, $format = "yyyy-mm-dd") {
|
||||
return date_parse_from_format($format, $date) !== false;
|
||||
function dateWellFormed($date, $with_time = false) {
|
||||
return date_parse_from_format($with_time ? "yyyy-mm-dd HH-MM:ss" : "yy-mm-dd", $date) !== false;
|
||||
}
|
Reference in New Issue
Block a user