Cutoff on midnight always, making successive queries identical. This means it can...
authorMr. E23 <e23@users.mediawiki.org>
Wed, 28 Jan 2004 14:41:20 +0000 (14:41 +0000)
committerMr. E23 <e23@users.mediawiki.org>
Wed, 28 Jan 2004 14:41:20 +0000 (14:41 +0000)
includes/SpecialRecentchanges.php

index 986c389..001f936 100644 (file)
@@ -41,7 +41,9 @@ function wfSpecialRecentchanges( $par )
        $days = (int)$days;
        list( $limit, $offset ) = wfCheckLimits( 100, "rclimit" );
        $now = wfTimestampNow();
-       $cutoff = wfUnix2Timestamp( time() - ( $days * 86400 ) );
+       $cutoff_unixtime = time() - ( $days * 86400 );
+       $cutoff_unixtime = $cutoff_unixtime - ($cutoff_unixtime % 86400);
+       $cutoff = wfUnix2Timestamp( $cutoff_unixtime );
        if(preg_match('/^[0-9]{14}$/', $from) and $from > $cutoff) {
                $cutoff = $from;
        } else {