mirror of
http://git.whoc.org.uk/git/password-manager.git
synced 2025-10-30 02:47:36 +01:00
Fix timestamps on records
- update the access and update date when a record is saved - set the creation date when a record is created
This commit is contained in:
@@ -375,6 +375,13 @@ error_log("message");
|
||||
$user = $user->Get($_SESSION["userId"]);
|
||||
|
||||
$result["header"] = $user->header;
|
||||
$records = $user->GetRecordList();
|
||||
foreach ($records as $record)
|
||||
{
|
||||
$recordStats["updateDate"] = $record->update_date;
|
||||
$recordsStats[$record->reference] = $recordStats;
|
||||
}
|
||||
$result["recordsStats"] = $recordsStats;
|
||||
$result["statistics"] = $user->statistics;
|
||||
$result["version"] = $user->version;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user