From 80feb1c2d3b419db10e96821dd16be2eb2a212a2 Mon Sep 17 00:00:00 2001 From: wlx Date: Wed, 21 Dec 2011 07:31:54 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D59=E5=88=86=E5=90=8E=E9=80=9A?= =?UTF-8?q?=E8=BF=87=E5=90=8E=E6=97=A0=E6=B3=95=E8=87=AA=E5=8A=A8=E9=93=BE?= =?UTF-8?q?=E6=8E=A5=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/proftp_sync.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/proftp_sync.php b/htdocs/proftp_sync.php index d771ba6c..8c084bb1 100644 --- a/htdocs/proftp_sync.php +++ b/htdocs/proftp_sync.php @@ -22,7 +22,7 @@ $registry->set('config', $config); $db = Zend_Db::factory($config->db); $date=$_REQUEST["date"]; if (empty($date)) $date="2010-11-01"; - $sql="select dataorder.userid,dataset.path from dataorder left join dataset on dataorder.uuid=dataset.uuid where dataorder.status=5 and dataorder.offlineappid>0 and dataset.path<>'' and dataorder.ts_approved>='".$date."'"; + $sql="select dataorder.userid,dataset.path from dataorder left join dataset on dataorder.uuid=dataset.uuid where dataorder.status=5 and dataorder.offlineappid>0 and dataset.path<>'' and (dataorder.ts_approved+interval '1 minute')>='".$date."'"; $rs=$db->fetchAll($sql); print '# date: '.$date."\n"; foreach($rs as $r)