1
0
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:
Josh
2011-10-05 16:40:29 -04:00
parent 6ba274c79e
commit a26b219b6f
3 changed files with 19 additions and 5 deletions

View File

@@ -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;