From 53e9941f36db53b537e57389e0f8f1bc3014461e Mon Sep 17 00:00:00 2001 From: Rotem Liss Date: Wed, 3 Aug 2011 07:33:00 +0000 Subject: [PATCH] In the protection form, show the current protection expiry time in the local time and not in UTC. --- includes/ProtectionForm.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 ), -- 2.20.1