Merge "MCR: replace slot_inherited with slot_origin"
[lhc/web/wiklou.git] / includes / Storage / RevisionStore.php
index 1b933c3..584142b 100644 (file)
@@ -1055,9 +1055,10 @@ class RevisionStore
         * @return RevisionRecord|null
         */
        public function getRevisionByTimestamp( $title, $timestamp ) {
+               $db = $this->getDBConnection( DB_REPLICA );
                return $this->newRevisionFromConds(
                        [
-                               'rev_timestamp' => $timestamp,
+                               'rev_timestamp' => $db->timestamp( $timestamp ),
                                'page_namespace' => $title->getNamespace(),
                                'page_title' => $title->getDBkey()
                        ],