Skip to content

Commit

Permalink
Merge pull request #773 from nilsonLazarin/matPat-241023
Browse files Browse the repository at this point in the history
Corrigindo issue [#712]
  • Loading branch information
nilsonLazarin authored Oct 25, 2024
2 parents 0d21332 + 0f04d30 commit a03d963
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions html/relatorio_geracao.php
Original file line number Diff line number Diff line change
Expand Up @@ -279,11 +279,16 @@ function quickQuery($query, $column)
}

if (isset($post[4]['inicio'])) {
echo ("<ul>A partir de: " . $post[4]['inicio'] . "</ul>");
$dataInicio = $post[4]['inicio'];
$modeloBrasileiro = 'd/m/Y';
$dataInicioFormatada = date_format(date_create($dataInicio), $modeloBrasileiro);
echo ("<ul>A partir de: " . $dataInicioFormatada . "</ul>");
}

if (isset($post[4]['fim'])) {
echo ("<ul>Até: " . $post[4]['fim'] . "</ul>");
$dataFim = $post[4]['fim'];
$dataFimFormatada = date_format(date_create($dataFim), $modeloBrasileiro);
echo ("<ul>Até: " . $dataFimFormatada . "</ul>");
}

if (isset($post[5])) {
Expand Down

0 comments on commit a03d963

Please sign in to comment.