1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 04:38:27 +01:00

Delay in seconds rounded to the lowest quarter hour

This commit is contained in:
nlstart 2011-03-10 18:47:36 +00:00
parent e1447f16c1
commit 81020795e9

View File

@ -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']))