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

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
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)
All All
: Lowest enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  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: ---


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. 

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