jenkins-bot has submitted this change and it was merged. Change subject: Avoid Database::encodeExpiry, when simple timestamp is given ......................................................................
Avoid Database::encodeExpiry, when simple timestamp is given Also remove wfTimestampNow because Database::timestamp will default to now, when no param is given. Change-Id: I0b065f4cdf67e1473548e641cf2864b4a2232ef8 --- M includes/WikiPage.php 1 file changed, 1 insertion(+), 1 deletion(-) Approvals: Aaron Schulz: Looks good to me, approved jenkins-bot: Verified diff --git a/includes/WikiPage.php b/includes/WikiPage.php index 6c2c6ad..a59b795 100644 --- a/includes/WikiPage.php +++ b/includes/WikiPage.php @@ -2393,7 +2393,7 @@ 'pt_namespace' => $this->mTitle->getNamespace(), 'pt_title' => $this->mTitle->getDBkey(), 'pt_create_perm' => $limit['create'], - 'pt_timestamp' => $dbw->encodeExpiry( wfTimestampNow() ), + 'pt_timestamp' => $dbw->timestamp(), 'pt_expiry' => $dbw->encodeExpiry( $expiry['create'] ), 'pt_user' => $user->getId(), 'pt_reason' => $reason, -- To view, visit https://gerrit.wikimedia.org/r/96551 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I0b065f4cdf67e1473548e641cf2864b4a2232ef8 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Umherirrender <umherirrender_de...@web.de> Gerrit-Reviewer: Aaron Schulz <asch...@wikimedia.org> Gerrit-Reviewer: jenkins-bot _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits