diff --git a/app/CustomFuncPao.php b/app/CustomFuncPao.php index 650372a2..35db6ab6 100644 --- a/app/CustomFuncPao.php +++ b/app/CustomFuncPao.php @@ -323,7 +323,7 @@ function libriInPrevendita() ->where(DB::raw('CONVERT(INT, QtaDisponibile)'), '<', 0) // ->where('DescrizioneFormato', 'brossura') // ->where('DescrizioneTipologia', 'Libri') - ->where(DB::raw('DATEDIFF(second, \'1970-01-01\', DataOra)'), '>', 1000) + ->where(DB::raw('DATEDIFF(second, \'1970-01-01\', DataPubblicazione)'), '>', 1000) ->orderBy('DataPubblicazione', 'desc') ->get(); $sep = ' | ';