From 80fface06b0e25354aff6eabeef7002c34b10fad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Schw=C3=B6rer?= Date: Fri, 26 Jan 2018 23:49:25 +0100 Subject: [PATCH] Fix highscore insert code --- www/protected/controllers/HighscoresController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/protected/controllers/HighscoresController.php b/www/protected/controllers/HighscoresController.php index 681e759..7bd9835 100644 --- a/www/protected/controllers/HighscoresController.php +++ b/www/protected/controllers/HighscoresController.php @@ -43,7 +43,7 @@ class HighscoresController extends MSController //TODO-MS Test online if it all $entry->PLAYER = $name; $entry->PLAYERID = -1; $entry->CHECKSUM = $check; - $entry->TIMESTAMP = time(); + $entry->TIMESTAMP = date("Y-m-d H:m:s", time()); $entry->IP = $_SERVER['REMOTE_ADDR']; if ($entry->checkChecksum($rand)) @@ -151,7 +151,7 @@ class HighscoresController extends MSController //TODO-MS Test online if it all $entry->PLAYER = $name; $entry->PLAYERID = -1; $entry->CHECKSUM = $check; - $entry->TIMESTAMP = time(); + $entry->TIMESTAMP = date("Y-m-d H:m:s", time()); $entry->IP = $_SERVER['REMOTE_ADDR']; if ($entry->checkChecksum($rand))