Page MenuHomePhabricator

Message in watchlist is missing timezone adjustment
Closed, ResolvedPublic

Description

Author: jdsmet

Description:
On the "My watchlist" page, the dates and times of the actual changes listed are
properly adjusted for the user's timezone.
The message "Below are the last xx changes in the last x days, as of xx:xx, xxx
xx (UTC)."
is not.

I think it makes sense to display that message using the user's local time
instead of UTC, which would make it a lot easier to calculate how old a certain
change is.


Version: unspecified
Severity: enhancement
URL: http://en.wikipedia.org/wiki/MediaWiki:Rcnote

Details

Reference
bz5696

Event Timeline

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

robchur wrote:

I'm going to assume this is an English Wikipedia user...the message there does
provide this time and date information, however, it is done via a customisation
to the interface message; they're using {{CURRENTDAY}} et al. to produce the
time and date, which does so in UTC.

We could consider adding a $3 parameter to the message which would contain a
timestamp adjusted to the user's timezone settings, however.

jdsmet wrote:

Correct this is on en.wikipedia.org

On a possibly related note, the timestamp that gets shown as the result of a
~~~~ appears to have the same issue.

robchur wrote:

(In reply to comment #2)

On a possibly related note, the timestamp that gets shown as the result of a
~~~~ appears to have the same issue.

It's correct that these are related, although the latter can't be fixed. The
text that is saved into the database has UTC preserved to ensure that it looks
the same for all users, regardless of timezone issues.

The case this bug reports can be fixed, because that text isn't saved into the
database as part of a content page.

robchur wrote:

Third parameter ($3), containing the current time formatted according to the
current user's settings, added in SVN trunk, r13984.