Allow client-side scripts to convert dates in the format used in MediaWiki interface (Community Wishlist/W266): Difference between revisions
Appearance
Long-term opportunity
Content deleted Content added
m Maintenance script moved page Community Wishlist/Wishes/Allow client-side scripts to convert dates in the format used in MediaWiki interface to Community Wishlist/W266: Migrating to CommunityRequests |
Migrating to CommunityRequests |
||
| Line 1: | Line 1: | ||
{{#CommunityRequests: wish |
|||
{{Community Wishlist/Wish |
|||
| status = |
| 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> |
||
| |
| phabtasks = T21992,T389161 |
||
| proposer = |
| proposer = Nardog |
||
| created = 08:38 |
| created = 2024-08-21T08:38:00Z |
||
| projects = all |
|||
| otherproject = |
|||
| area = |
| area = |
||
| baselang = en |
| baselang = en |
||
Revision as of 18:49, 2 October 2025
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
Voting