Community Wishlist/Wishes/Allow client-side scripts to convert dates in the format used in MediaWiki interface/en

Allow client-side scripts to convert dates in the format used in MediaWiki interface Open

Edit wish Discuss this wish

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.

Assigned focus area

Unassigned.

Type of wish

Feature request

All projects

Affected users

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

Phabricator tasks

T21992

Other details

  • Created: 08:38, 21 August 2024 (UTC)
  • Last updated: 09:37, 23 August 2024 (UTC)
  • Author: Nardog (talk)