Fórum da Comarca de Barracão

Barracão - PR

Tribunal de Justiça do Paraná

PHP warning

PHP warning

date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone.

/hosting/olv/public_html/extranet/protected/models/Obra.php(75)

63             '12'=>'Dezembro',
64         );
65     }
66     public function getMes(){
67         $array = $this->getMesArray();
68         return $array[$this->mes];
69     }
70 
71     //ano
72     public function getAnoArray(){
73 
74             $anos = array();
75             $ano=date('Y');
76             for($i=$ano-40;$i<=$ano+15;$i++){
77                 $anos[$i] = $i;
78             }
79             return $anos;
80 
81     }
82     public function getAno(){
83         $array = $this->getAnoArray();
84         return $this->ano;
85     }
86 
87 

Stack Trace

#0
+
 /hosting/olv/public_html/extranet/protected/models/Obra.php(75): date("Y")
70 
71     //ano
72     public function getAnoArray(){
73 
74             $anos = array();
75             $ano=date('Y');
76             for($i=$ano-40;$i<=$ano+15;$i++){
77                 $anos[$i] = $i;
78             }
79             return $anos;
80 
#1
+
 /hosting/olv/public_html/extranet/protected/models/Obra.php(83): Obra->getAnoArray()
78             }
79             return $anos;
80 
81     }
82     public function getAno(){
83         $array = $this->getAnoArray();
84         return $this->ano;
85     }
86 
87 
88 }
#2
+
 /hosting/olv/public_html/obras-lista.php(80): Obra->getAno()
75                     </div>
76 
77                     <h2 class="font-bold m-t-5 cor-empreendimentos"><?=Util::formataTexto($obra->titulo)?></h2>
78                     <h2 class="font-bold m-t-5 "><?=Util::formataTexto($obra->cidade->nome)?> - <?=Util::formataTexto($obra->uf)?></h2>
79                     <h2 class="m-t-5 font-light"><?=Util::formataTexto($obra->cliente->nome)?></h2>
80                     <h4 class="m-t-5 cor-empreendimentos"> <?=Util::formataTexto($obra->getMes())?> <?=Util::formataTexto($obra->getAno())!=''?'/ ':''?> <?=Util::formataTexto($obra->getAno())?></h4>
81                 </a>
82             </div>
83             <?php
84         }
85         ?>