From c28b13eaeca04574994d5a7c2320bbce4c63450f Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 1 Nov 2010 08:46:05 +0100 Subject: add new TableRpmRepo->getMaxStamp() method and use it --- testdb.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'testdb.php') 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); -- cgit