Index: trunk/extensions/UsabilityInitiative/ClickTracking/SpecialClickTracking.php |
— | — | @@ -503,7 +503,7 @@ |
504 | 504 | * @param maxTime max day (YYYYMMDD) |
505 | 505 | * NOTE: once some of the constraints have been finalized, this will use more of the Database functions and not raw SQL |
506 | 506 | */ |
507 | | - static function getTimeConstraintsStatement( $minTime, $maxTime ){ |
| 507 | + static function getTimeConstraintsStatement( $minTime, $maxTime ){ |
508 | 508 | $minTime = addslashes($minTime); |
509 | 509 | $maxTime = addslashes($maxTime); |
510 | 510 | if( $minTime == 0 || $maxTime == 0 || |
— | — | @@ -512,7 +512,9 @@ |
513 | 513 | return ''; |
514 | 514 | } |
515 | 515 | else { |
516 | | - |
| 516 | + //the dates are stored in the DB as MW_TIMESTAMP formats, add the zeroes to fix that |
| 517 | + $minTime .= "000000"; |
| 518 | + $maxTime .= "000000"; |
517 | 519 | return "WHERE `action_time` >= '$minTime' AND `action_time` <= '$maxTime'"; |
518 | 520 | |
519 | 521 | } |