Index: branches/5.3.x/core/units/helpers/count_helper.php =================================================================== diff -u -N -r15902 -r15928 --- branches/5.3.x/core/units/helpers/count_helper.php (.../count_helper.php) (revision 15902) +++ branches/5.3.x/core/units/helpers/count_helper.php (.../count_helper.php) (revision 15928) @@ -1,6 +1,6 @@ Conn->doInsert($count_data, TABLE_PREFIX.'Counters', 'REPLACE'); } @@ -108,7 +108,7 @@ // reset expired counts $sql = 'UPDATE '.TABLE_PREFIX.'Counters SET CountValue = NULL - WHERE (LifeTime > 0) AND (LastCounted < '.adodb_mktime().' - LifeTime)'; + WHERE (LifeTime > 0) AND (LastCounted < '.time().' - LifeTime)'; $this->Conn->Query($sql); $reset = true; } @@ -160,7 +160,7 @@ $where_clauses[] = 'item_table.Status = ' . STATUS_ACTIVE; if ( isset($params['today']) && $params['today'] ) { - $today = adodb_mktime(0, 0, 0, adodb_date('m'), adodb_date('d'), adodb_date('Y')); + $today = mktime(0, 0, 0, date('m'), date('d'), date('Y')); $where_clauses[] = 'item_table.CreatedOn >= ' . $today; } @@ -200,7 +200,7 @@ list ($sql, $where_clause) = $this->attachViewPermissionCheck($prefix, $sql, $where_clause, 'ci.CategoryId'); if ( $today ) { - $today_date = adodb_mktime(0, 0, 0, adodb_date('m'), adodb_date('d'), adodb_date('Y')); + $today_date = mktime(0, 0, 0, date('m'), date('d'), date('Y')); $where_clause[] = 'item_table.CreatedOn >= ' . $today_date; } @@ -220,7 +220,7 @@ $cache_key = 'category_count[%CSerial%]'; if ( $today ) { - $today_date = adodb_mktime(0, 0, 0, adodb_date('m'), adodb_date('d'), adodb_date('Y')); + $today_date = mktime(0, 0, 0, date('m'), date('d'), date('Y')); $cache_key .= ':date=' . $today_date; }