mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-20 08:22:17 +00:00
formats the update timestamps in php, differently tracks which properties and informations where changed by the user
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user