Last modified: 2006-02-02 15:07:46 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T4912, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 2912 - inconsistency in date/time templates
inconsistency in date/time templates
Status: RESOLVED DUPLICATE of bug 2522
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
unspecified
All All
: Lowest enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-07-20 10:07 UTC by Richard Wendrich
Modified: 2006-02-02 15:07 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Richard Wendrich 2005-07-20 10:07:45 UTC
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.
Comment 1 Ævar Arnfjörð Bjarmason 2005-07-22 16:29:46 UTC

*** This bug has been marked as a duplicate of 2522 ***
Comment 2 dhneum 2005-09-09 23:00:59 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links