Page MenuHomePhabricator

watchlist shows times in UTC
Closed, ResolvedPublic

Description

From https://en.wikipedia.org/w/index.php?diff=479583262 :

While the times in the list itself is fine, the part in the box (following "in the last 72 hours, as of") shows UTC time now. I have to hope this is a bug, not a feature.


Version: 1.19
Severity: normal

Details

Reference
bz34835

Related Objects

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 12:13 AM
bzimport set Reference to bz34835.

The relevant message is wlnote from includes/specials/SpecialWatchlist.php . It was changed by r111882 to use the user date and time. Now looks like:

$wlInfo = $this->msg( 'wlnote' )

->numParams( $numRows, round( $values['days'] * 24 ) )
->params(
    $lang->userDate( $timestamp, $user ),
    $lang->userTime( $timestamp, $user )
)->parse() . '<br />';

And the bug is a regression from 1.18.

Merged above fix (r111882):

In REL1_19 with r112798
In 1.19wmf1 with r112797