Index: trunk/extensions/ContributionReporting/FundraiserStatistics_body.php |
— | — | @@ -325,7 +325,7 @@ |
326 | 326 | |
327 | 327 | // Use database |
328 | 328 | $dbr = efContributionReportingConnection(); |
329 | | - // Set timezone to UTC just in case |
| 329 | + // Set timezone to UTC (contribution data will always be in UTC) |
330 | 330 | date_default_timezone_set( 'UTC' ); |
331 | 331 | |
332 | 332 | $conditions = array( |
Index: trunk/extensions/ContributionReporting/DailyTotal_body.php |
— | — | @@ -118,7 +118,7 @@ |
119 | 119 | $result = $dbr->select( |
120 | 120 | 'public_reporting_days', |
121 | 121 | 'round( prd_total ) AS total', |
122 | | - "prd_date = '$today'", |
| 122 | + 'prd_date' => $today, |
123 | 123 | __METHOD__ |
124 | 124 | ); |
125 | 125 | $row = $dbr->fetchRow( $result ); |