From 80142ed57664330a264df08184b6bbc50ac972d6 Mon Sep 17 00:00:00 2001 From: Geoffrey Frogeye Date: Sat, 7 May 2016 14:03:30 +0200 Subject: [PATCH] Compatibilité MySQL 5.5 --- api/commun.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/commun.php b/api/commun.php index 1b36927..dc4016c 100644 --- a/api/commun.php +++ b/api/commun.php @@ -72,7 +72,7 @@ function verifierJeton($jeton) { $requete->close(); // Augmentation du timer - $requete = $db->prepare("UPDATE Sessions SET date=CURRENT_TIME WHERE jeton=?"); + $requete = $db->prepare("UPDATE Sessions SET date=CURRENT_TIMESTAMP WHERE jeton=?"); if (!$requete) { retour("erreur_bdd_preparee", ["message" => $db->error]); } -- libgit2 0.21.2