From 81020795e9af8b275548854f9c3da40a0221d467 Mon Sep 17 00:00:00 2001 From: nlstart Date: Thu, 10 Mar 2011 18:47:36 +0000 Subject: [PATCH] Delay in seconds rounded to the lowest quarter hour --- class2.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/class2.php b/class2.php index f6f3c5101..f710186a2 100644 --- a/class2.php +++ b/class2.php @@ -851,7 +851,7 @@ $e_deltaTime=0; if (isset($_COOKIE['e107_tdOffset'])) { // Actual seconds of delay. See e107.js and footer_default.php - $e_deltaTime = $_COOKIE['e107_tdOffset']; + $e_deltaTime = (15*floor(($_COOKIE['e107_tdOffset']/60)/15))*60; // Delay in seconds rounded to the lowest quarter hour } if (isset($_COOKIE['e107_tzOffset']))