Page MenuHomePhabricator

Provide variable for customizing time zone description
Closed, ResolvedPublic

Description

Author: stanley

Description:
Currently the only way to change time zone description to local language, is by
changing the code itself.
for ex:
$d = $wgContLang->timeanddate( date( 'YmdHis' ), false, false) .

' (' . date( 'T' ) . ')';

if ( isset( $wgLocaltimezone ) ) {

putenv( 'TZ='.$oldtz );

}

to:

$d = $wgContLang->timeanddate( date( 'YmdHis' ), false, false) .

' (some local timezone)';

if ( isset( $wgLocaltimezone ) ) {

putenv( 'TZ='.$oldtz );

}

which, we must redoing this for each mediawiki upgrades.

Please provide $wg variable for this for customization through localsettings.php
Thanks


Version: unspecified
Severity: enhancement

Details

Reference
bz5832

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:12 PM
bzimport set Reference to bz5832.
bzimport added a subscriber: Unknown Object (MLST).

stanley wrote:

Target of enhancement request is 1.6.x and 1.7 (1.6 because 1.7 is long way from
being released).

robchur wrote:

(In reply to comment #1)

Target of enhancement request is 1.6.x and 1.7 (1.6 because 1.7 is long way from
being released).

We don't add new stuff to release branches unless our lead developer gives us
his blessing. Some of us were reminded of this the hard way.

  • Bug 7556 has been marked as a duplicate of this bug. ***

r46649 with wrong bug number though.

Wiki.Melancholie wrote:

per comment #4