Skip to content

Commit

Permalink
Resolução da issue #607
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielPintoSouza committed Jun 20, 2024
1 parent a1a3108 commit 4916702
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion controle/SinaisVitaisControle.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function verificar(){
$data_afericao = "";
}else{
$timestamp = strtotime($data_afericao);
$data_afericao = date('Y-m-d', $timestamp);
$data_afericao = date('Y-m-d\TH:i', $timestamp);
}

if((!isset($saturacao)) || (empty($saturacao))){
Expand Down
4 changes: 2 additions & 2 deletions html/saude/historico_paciente.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
//formatar data
foreach($sinaisvitais as $key => $value){
$data = new DateTime($value['data']);
$sinaisvitais[$key]['data'] = $data->format('d/m/Y');
$sinaisvitais[$key]['data'] = $data->format('d/m/Y H:i');
}

$sinaisvitais = json_encode($sinaisvitais);
Expand Down Expand Up @@ -527,7 +527,7 @@ function removerSinVit(sinal, linha) {
<div class="form-group">
<label class="col-md-3 control-label" for="profileCompany">Data da aferição<sup class="obrig">*</sup></label>
<div class="col-md-6">
<input type="date" placeholder="dd/mm/aaaa" maxlength="10" class="form-control" name="data_afericao" id="data_afericao" max=<?php echo date('Y-m-d'); ?> required>
<input type="datetime-local" placeholder="dd/mm/aaaa" maxlength="10" class="form-control" name="data_afericao" id="data_afericao" max=<?php echo date('Y-m-d\TH:i'); ?> required>
</div>
</div>

Expand Down

0 comments on commit 4916702

Please sign in to comment.