Revert "Refactoring: Created constants for datetime values (#1648)"

This reverts commit 6eca29714a.
This commit is contained in:
Roman Kelesidis 2024-09-27 18:32:23 +07:00
commit 3e9f4006c4
30 changed files with 52 additions and 58 deletions

View file

@ -202,7 +202,7 @@ function search_attachments($order_by, &$total_rows)
// Search Attachment Time
$search_days_greater = get_var('search_days_greater', '');
if ($search_days_greater) {
$where_sql[] = ' (a.filetime < ' . (TIME_DAY * (int)$search_days_greater) . ') ';
$where_sql[] = ' (a.filetime < ' . (TIMENOW - ((int)$search_days_greater * 86400)) . ') ';
}
// Search Forum