Page MenuHomePhabricator

centralauth_localtimezone.patch

Authored By
bzimport
Nov 21 2014, 11:34 PM
Size
1 KB
Referenced Files
None
Subscribers
None

centralauth_localtimezone.patch

Index: CentralAuth/specials/SpecialCentralAuth.php
===================================================================
--- CentralAuth/specials/SpecialCentralAuth.php (revision 92542)
+++ CentralAuth/specials/SpecialCentralAuth.php (working copy)
@@ -282,7 +282,7 @@
$age = $this->prettyTimespan( wfTimestamp( TS_UNIX ) - wfTimestamp( TS_UNIX, $reg ) );
$attribs = array(
'id' => $globalUser->getId(),
- 'registered' => $wgLang->timeanddate( $reg ) . " ($age)",
+ 'registered' => $wgLang->timeanddate( $reg, true ) . " ($age)",
'home' => $this->determineHomeWiki(),
'editcount' => $wgLang->formatNum( $this->evaluateTotalEditcount() ),
'locked' => $globalUser->isLocked() ? wfMsg( 'centralauth-admin-yes' ) : wfMsg( 'centralauth-admin-no' ),
@@ -385,7 +385,7 @@
// invisible, to make this column sortable
Html::element( 'span', array( 'style' => 'display: none' ), htmlspecialchars( $row['attachedTimestamp'] ) ) .
// visible date and time in users preference
- htmlspecialchars( $wgLang->timeanddate( $row['attachedTimestamp'] ) ) .
+ htmlspecialchars( $wgLang->timeanddate( $row['attachedTimestamp'], true ) ) .
'</td>' .
'<td style="text-align: center">' . $this->formatMergeMethod( $row['attachedMethod'] ) . '</td>' .
'<td>' . $this->formatBlockStatus( $row ) . '</td>' .
@@ -409,9 +409,9 @@
return wfMsgExt( 'centralauth-admin-blocked-indef', 'parseinline', array( $reason ) );
} else {
global $wgLang;
- $expiry = $wgLang->timeanddate( $row['block-expiry'] );
- $expiryd = $wgLang->date( $row['block-expiry'] );
- $expiryt = $wgLang->time( $row['block-expiry'] );
+ $expiry = $wgLang->timeanddate( $row['block-expiry'], true );
+ $expiryd = $wgLang->date( $row['block-expiry'], true );
+ $expiryt = $wgLang->time( $row['block-expiry'], true );
$reason = $row['block-reason'];
$text = wfMsgExt( 'centralauth-admin-blocked', 'parseinline', array( $expiry, $reason, $expiryd, $expiryt ) );

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
7336
Default Alt Text
centralauth_localtimezone.patch (1 KB)

Event Timeline