1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-06-29 22:31:14 +02:00

First week fixes

This commit is contained in:
Yohann D'ANELLO
2020-05-05 01:06:57 +02:00
parent a064cc1817
commit 132481fda0
22 changed files with 541 additions and 59 deletions

View File

@ -9,7 +9,7 @@ function ensure($bool, $error_msg = "")
function formatDate($date = NULL, $with_time = false)
{
if ($date == NULL)
$date = date("Y-m-d H:i:s");
$date = date("Y-m-d H:i");
return strftime("%d %B %G" . ($with_time ? " %H:%M" : ""), strtotime($date));
}