diff --git a/src/Util/Query.php b/src/Util/Query.php index d55772eff..deb2360b2 100755 --- a/src/Util/Query.php +++ b/src/Util/Query.php @@ -214,7 +214,7 @@ class Query $value = trim(str_replace(['<', '>'], '', $value)); if ($more || $minus) { - if( date_parse($value) ){ + if( date_parse($value) && date_parse($value)!='1970-01-01' ){ $search_filters[] = 'DATE_FORMAT('.$search_query.', "%Y-%m-%d") '.$sign.' '.prepare(date("Y-m-d",strtotime($value))); }else{ $search_filters[] = 'CAST('.$search_query.' AS UNSIGNED) '.$sign.' '.prepare($value);