summaryrefslogtreecommitdiff
path: root/includes/pager/ReverseChronologicalPager.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/pager/ReverseChronologicalPager.php')
-rw-r--r--includes/pager/ReverseChronologicalPager.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/includes/pager/ReverseChronologicalPager.php b/includes/pager/ReverseChronologicalPager.php
index 4f8c438d..ee6e26c0 100644
--- a/includes/pager/ReverseChronologicalPager.php
+++ b/includes/pager/ReverseChronologicalPager.php
@@ -113,6 +113,10 @@ abstract class ReverseChronologicalPager extends IndexPager {
$ymd = 20320101;
}
- $this->mOffset = $this->mDb->timestamp( "${ymd}000000" );
+ // Treat the given time in the wiki timezone and get a UTC timestamp for the database lookup
+ $timestamp = MWTimestamp::getInstance( "${ymd}000000" );
+ $timestamp->setTimeZone( $this->getConfig()->get( 'Localtimezone' ) );
+
+ $this->mOffset = $this->mDb->timestamp( $timestamp->getTimestamp() );
}
}