dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68df151
)
Cutoff on midnight always, making successive queries identical. This means it can...
author
Mr. E23
<e23@users.mediawiki.org>
Wed, 28 Jan 2004 14:41:20 +0000
(14:41 +0000)
committer
Mr. E23
<e23@users.mediawiki.org>
Wed, 28 Jan 2004 14:41:20 +0000
(14:41 +0000)
includes/SpecialRecentchanges.php
patch
|
blob
|
history
diff --git
a/includes/SpecialRecentchanges.php
b/includes/SpecialRecentchanges.php
index
986c389
..
001f936
100644
(file)
--- a/
includes/SpecialRecentchanges.php
+++ b/
includes/SpecialRecentchanges.php
@@
-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 {