From 9704cf7ae13b82f3f512d44b704eaf0889b09b0d Mon Sep 17 00:00:00 2001 From: Jean Paul Galea Date: Fri, 24 Jul 2015 14:45:41 +0200 Subject: [PATCH] Refactor. - avoid unnecessary strtotime() call. - instead of: strtotime(date('Y-m-d H:i:s', $timestamp)) use: $timestamp since: $timestamp === strtotime(date('Y-m-d H:i:s', $timestamp)) --- ykval-verify.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ykval-verify.php b/ykval-verify.php index ba156f9..f5f6bbf 100644 --- a/ykval-verify.php +++ b/ykval-verify.php @@ -428,7 +428,7 @@ if ($sessionCounter == $seenSessionCounter && $sessionUse > $seenSessionUse) $tsDelta = $tsDiff * TS_SEC; // check the real time - $lastTime = strtotime($ad['accessed']); + $lastTime = $localParams['modified']; $now = time(); $elapsed = $now - $lastTime; $deviation = abs($elapsed - $tsDelta);