Index: trunk/kernel/include/cachecount.php =================================================================== diff -u -r1248 -r3282 --- trunk/kernel/include/cachecount.php (.../cachecount.php) (revision 1248) +++ trunk/kernel/include/cachecount.php (.../cachecount.php) (revision 3282) @@ -135,7 +135,7 @@ if(is_object($i)) { $d = $i->Get("LastUpdate"); - $el = date("U") - $d; + $el = adodb_date("U") - $d; if($el > $Timeout) { $val = ""; @@ -157,7 +157,7 @@ if($rs && !$rs->EOF) { $d = $rs->fields["LastUpdate"]; - $el = $date("U") - $d; + $el = adodb_date("U") - $d; if($el < $Timeout) { $val = (int)$rs->fields["Value"]; @@ -178,7 +178,7 @@ if(is_object($c)) { $c->Set("Value",$Value); - $c->Set("LastUpdate",Date("U")); + $c->Set("LastUpdate",adodb_date("U")); $c->Update(); } else @@ -189,7 +189,7 @@ $c->Set("ExtraId",$ExtraId); $c->Set("Value",$Value); $c->Set("TodayOnly",$Today); - $c->Set("LastUpdate",Date("U")); + $c->Set("LastUpdate",adodb_date("U")); $c->Create(); } }