Jump to content

Allow client-side scripts to convert dates in the format used in MediaWiki interface (Community Wishlist/W266): Difference between revisions

Long-term opportunity
From Meta, a Wikimedia project coordination wiki
Content deleted Content added
Migrating to CommunityRequests
Line 1: Line 1:
{{#CommunityRequests: wish
{{Community Wishlist/Wish
| status = delivered
| status = long-term-opportunity
| type = feature
| type = feature
| title = <translate><!--T:1--> Allow client-side scripts to convert dates in the format used in MediaWiki interface</translate>
| title = <translate><!--T:1--> Allow client-side scripts to convert dates in the format used in MediaWiki interface</translate>
Line 9: Line 9:
Previous wishlist surveys: [[<tvar name="1">Community Wishlist Survey 2023/Bots and gadgets/Allow client-side scripts to convert dates in the format used in MediaWiki interface</tvar>|2023]]</translate>
Previous wishlist surveys: [[<tvar name="1">Community Wishlist Survey 2023/Bots and gadgets/Allow client-side scripts to convert dates in the format used in MediaWiki interface</tvar>|2023]]</translate>
| audience = <translate><!--T:3--> Users and developers of MediaWiki and its extensions, gadgets and scripts, especially those in Iran, Thailand, etc.</translate>
| audience = <translate><!--T:3--> Users and developers of MediaWiki and its extensions, gadgets and scripts, especially those in Iran, Thailand, etc.</translate>
| tasks = T21992,T389161
| phabtasks = T21992,T389161
| proposer = [[User:Nardog|Nardog]] ([[User talk:Nardog|talk]])
| proposer = Nardog
| created = 08:38, 21 August 2024 (UTC)
| created = 2024-08-21T08:38:00Z

| projects = all

| otherproject =
| area =
| area =
| baselang = en
| baselang = en

Revision as of 18:49, 2 October 2025

View all wishes.

Description

Software, including MediaWiki APIs, usually handles dates in Unix time (e.g. 1672543856) or ISO format (2023-01-01T12:30:56Z), but MediaWiki shows them in human-friendly formats such as "04:30, 1 January 2023" or "2023年1月1日 (日) 20:30". But script developers have no access to the logic according to which these formats are produced (or even the difference between the user/site's time and UTC, which can vary with DST) and can't show dates in a way that is consistent with how the user sees the rest of the MediaWiki interface.

Previous wishlist surveys: 2023

Assigned focus area

Unassigned

Type of wish
Feature request
Affected users

Users and developers of MediaWiki and its extensions, gadgets and scripts, especially those in Iran, Thailand, etc.

Phabricator tasks
Other details
  • Created: 08:38, 21 August 2024
  • Last updated: 18:49, 2 October 2025
  • Author: Nardog (talk)
Voting

This wish currently has 2 supporters. Voting for this wish is open until it is completed.

Supporters of this wish
Support Nardog (talk) 08:38, 21 August 2024
Support Pppery (talk) 16:16, 10 October 2025