Page MenuHomePhabricator

when protecting a page, use the wiki's default local timezone for the edit summary
Closed, DuplicatePublic

Description

When a page is protected, a human-readable timestamp is written in at least two places: the protection log and the page's own edit summary.

The edit summary writes a timestamp in UTC, whereas the log shows it according to what the user chose in the preferences or according to the wiki's default local timezone.

The situation in the log is sensible, but showing the edit summary always in UTC is not great. It's fine for wikis in world languages, like English or Spanish, which don't have a defined wiki-wide local timezone, but for languages that are mostly spoken in a certain timezone it's inconvenient. It makes more sense to write the timestamp in the edit summary in the wiki's chosen local timezone.

Event Timeline

I think the goal should be to *display* the timestamp in the user's timezone (which will often be the wiki's default), but changing the timestamp recorded in the database is not a goal in itself.

As wikis can change their default timezone, you could end up with timestamps following multiple timezones. That's not an insurmountable problem as long as we write them in an ISO format and one has proper parsing; but summaries get truncated and sometimes one wants to make simple matches in SQL.

I think the goal should be to *display* the timestamp in the user's timezone

Yeah, and this already works with log entries, but I'm not sure if it's possible with edit summaries, which are stored as text and have almost no parsing. Edit summaries can have internal and external links and I can't recall anything else.