diff options
Diffstat (limited to 'testdb.php')
-rw-r--r-- | testdb.php | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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); |