From 92b2cdf9c99770c9f55d27d8eb814380f35e97d2 Mon Sep 17 00:00:00 2001 From: Maximilian Giller Date: Tue, 21 Feb 2023 04:33:32 +0100 Subject: [PATCH] Small adjustments --- index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index 25bf28f..d8fb73c 100755 --- a/index.php +++ b/index.php @@ -22,7 +22,7 @@ function getTime() $file = fopen($FILENAME, "r"); $time = fread($file, filesize($FILENAME)); fclose($file); - return $time; + return (int)$time; } @@ -37,7 +37,7 @@ if (isset($_GET['secret']) && $_GET['secret'] == $SECRET_KEY) { // Current status requested $last_activity = getTime(); $response = array( - "last_activity" => date(DATE_ATOM, $last_activity) + "last_activity" => $last_activity ); // Estimate current activity