summaryrefslogtreecommitdiffstats
path: root/testdb.php
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2010-11-01 08:46:05 +0100
committerRemi Collet <fedora@famillecollet.com>2010-11-01 08:46:05 +0100
commitc28b13eaeca04574994d5a7c2320bbce4c63450f (patch)
treebabb19b528e46b85bbbdc59a78313d422f5bcd5a /testdb.php
parent1421a2207c0130030233e901d6f5055f54417e68 (diff)
add new TableRpmRepo->getMaxStamp() method and use it
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);