Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F7808
centralauth_localtimezone.patch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
bzimport
Nov 21 2014, 11:34 PM
2014-11-21 23:34:21 (UTC+0)
Size
1 KB
Referenced Files
None
Subscribers
None
centralauth_localtimezone.patch
View Options
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
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
7336
Default Alt Text
centralauth_localtimezone.patch (1 KB)
Attached To
Mode
T31957: Special:CentralAuth shows time in UTC
Attached
Detach File
Event Timeline
Log In to Comment