From b51fa906ca83bf48d1da534a0af639c555c9ea93 Mon Sep 17 00:00:00 2001 From: paoloar77 Date: Thu, 13 Jun 2024 13:33:02 +0200 Subject: [PATCH] data --- app/CustomFuncPao.php | 1 + 1 file changed, 1 insertion(+) 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 = ' | ';