Page MenuHomePhabricator

inconsistency in date/time templates
Closed, ResolvedPublic

Description

Author: Richard.Wendrich

Description:
While viewing the Dutch page on UTC, I encountered an inconsistency in some date/time templates.

The CURRENTDAY template returns the day of the month. When before the 10th, only 1 digit is returned.
The CURRENTMONTH template returns the month of the year (01-12), from January through September a
leading zero is added and returned are always 2 digits.

When used for displaying this should normally be no problem. On the mentioned page however, these
templates (along with a few others) are used to display the current date/time in UTC format.
However, the W3C guidelines dictate that day-of-month is always represented in 2 digits - and the
CURRENTDAY template doesn't provide that.

Maybe it would be an idea to create new templates CURRENTDAY_DD and CURRENTMONTH_MM which always
return two digits? The existing CURRENTMONTH template might be modified to behave consistently with
the existing CURRENTDAY template.


Version: unspecified
Severity: enhancement

Details

Reference
bz2912

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 21 2014, 8:41 PM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz2912.
bzimport added a subscriber: Unknown Object (MLST).

avarab wrote:

*** This bug has been marked as a duplicate of 2522 ***

dhneum wrote:

Please change {{CURRENTDAY}} to always display the two-digit day of
month; otherwise we cannot construct the ISO 8601 international
standard date format. Or else please create a new variable that always
displays two digits, naming it, e.g., {{CURRENTDAY2}}. Since Wikipedia is
intended for a worldwide audience, Wikipedia should only be using the
ISO 8601 international standard date and time format for the four-tilde
signature string and logged-out skin, instead of arbitrary, mixed-up,
colloquial formats. Please implement this greatly needed change.
Thanks.