Fix flaky test BlockListPagerTest::testFormatValue
[lhc/web/wiklou.git] / includes / specials / pagers / BlockListPager.php
index 496013b..2b8d1d5 100644 (file)
@@ -161,7 +161,7 @@ class BlockListPager extends TablePager {
                                        $formatted .= '<br />' . $this->msg(
                                                'ipb-blocklist-duration-left',
                                                $language->formatDuration(
-                                                       $timestamp->getTimestamp() - time(),
+                                                       $timestamp->getTimestamp() - MWTimestamp::time(),
                                                        // reasonable output
                                                        [
                                                                'minutes',