From d0ec64ee0edc4d2209c0371a31351009ec88180a Mon Sep 17 00:00:00 2001 From: Geoff Munn Date: Wed, 11 Mar 2009 21:45:58 +0000 Subject: [PATCH] API CHANGE: NOW() replaced with DB-specific version git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@72917 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/SideReport.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/SideReport.php b/code/SideReport.php index beb57cc2..e156339e 100755 --- a/code/SideReport.php +++ b/code/SideReport.php @@ -92,7 +92,7 @@ class SideReport_RecentlyEdited extends SideReport { return _t('SideReport.LAST2WEEKS',"Pages edited in the last 2 weeks"); } function records() { - return DataObject::get("SiteTree", "\"SiteTree\".\"LastEdited\" > NOW() - INTERVAL '14 DAY'", "\"SiteTree\".\"LastEdited\" DESC"); + return DataObject::get("SiteTree", "\"SiteTree\".\"LastEdited\" > " . DB::getConn()->now() . " - INTERVAL '14 DAY'", "\"SiteTree\".\"LastEdited\" DESC"); } function fieldsToShow() { return array(