summaryrefslogtreecommitdiffstats
path: root/testdb.php
diff options
context:
space:
mode:
Diffstat (limited to 'testdb.php')
-rw-r--r--testdb.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/testdb.php b/testdb.php
index cc7c301..d27e24f 100644
--- a/testdb.php
+++ b/testdb.php
@@ -2,6 +2,8 @@
require "include/main.php";
require "class/CommonTable.php";
+date_default_timezone_set('Europe/Paris');
+
$db = new PDO ("mysql:dbname=" . MYBASE . ";host=" . MYHOST, MYUSER, MYPASS);
$pear = new TableRRepo($db);
@@ -66,6 +68,8 @@ if ($row = $rpm->get(888)) {
} else {
echo "not found\n";
}
+echo "Last update : ".date("r", $rpm->getMaxStamp())."\n";
+
$up = new TableUpstream($db);
$up->delete(array('name'=>'foo','type'=>'test'));
$rec = $up->record('test','bar','foo','1.0',true);