From a26b219b6f4f3fee727d9b23d8cd374f6b32a4fa Mon Sep 17 00:00:00 2001
From: Josh <jokajak@gmail.com>
Date: Wed, 05 Oct 2011 20:40:29 +0000
Subject: Fix timestamps on records

- update the access and update date when a record is saved
- set the creation date when a record is created
---
(limited to 'backend/php/src/index.php')

diff --git a/backend/php/src/index.php b/backend/php/src/index.php
index 58c10a9..3d23e7a 100644
--- a/backend/php/src/index.php
+++ b/backend/php/src/index.php
@@ -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;
 
--
cgit v0.9.0.2