formats the update timestamps in php, differently tracks which properties and informations where changed by the user

This commit is contained in:
Simon Gschnell
2024-01-04 16:06:47 +01:00
parent d412c1d00e
commit ee8051915e
7 changed files with 104 additions and 43 deletions
+8 -1
View File
@@ -35,7 +35,14 @@ class ProfilUpdate extends Auth_Controller
echo $res->retval->data;
return;
}else{
$res = hasData($res)? getData($res) : null;
if(hasData($res)){
$res = getData($res);
foreach($res as $element){
$element->change_timestamp = date_create($element->change_timestamp)->format('d/m/Y H:i');
}
}else{
$res = null;
}
}
echo json_encode($res);
}