From: Rotem Liss Date: Wed, 3 Aug 2011 07:33:00 +0000 (+0000) Subject: In the protection form, show the current protection expiry time in the local time... X-Git-Tag: 1.31.0-rc.0~28468 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=53e9941f36db53b537e57389e0f8f1bc3014461e;p=lhc%2Fweb%2Fwiklou.git In the protection form, show the current protection expiry time in the local time and not in UTC. --- diff --git a/includes/ProtectionForm.php b/includes/ProtectionForm.php index 2adedb774c..e68be85d33 100644 --- a/includes/ProtectionForm.php +++ b/includes/ProtectionForm.php @@ -375,9 +375,9 @@ class ProtectionForm { $expiryFormOptions = ''; if ( $this->mExistingExpiry[$action] && $this->mExistingExpiry[$action] != 'infinity' ) { - $timestamp = $wgLang->timeanddate( $this->mExistingExpiry[$action] ); - $d = $wgLang->date( $this->mExistingExpiry[$action] ); - $t = $wgLang->time( $this->mExistingExpiry[$action] ); + $timestamp = $wgLang->timeanddate( $this->mExistingExpiry[$action], true ); + $d = $wgLang->date( $this->mExistingExpiry[$action], true ); + $t = $wgLang->time( $this->mExistingExpiry[$action], true ); $expiryFormOptions .= Xml::option( wfMsg( 'protect-existing-expiry', $timestamp, $d, $t ),