diff --git a/app/CustomFuncPao.php b/app/CustomFuncPao.php index e75c2df5..2e984961 100644 --- a/app/CustomFuncPao.php +++ b/app/CustomFuncPao.php @@ -324,6 +324,7 @@ function libriInPrevendita() ->where(DB::raw('CONVERT(INT, QtaDisponibile)'), '<', 0) ->where('DescrizioneFormato', 'brossura') // ->where('DescrizioneTipologia', 'Libri') + ->where(DB::raw('UNIX_TIMESTAMP(DataOra)'), '>', 0) // Verifica che DataOra sia maggiore del 01-01-1970 ->orderBy('DataPubblicazione', 'desc') ->get(); $sep = ' | ';