Last modified: 2014-07-07 12:00:59 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 T6383, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 4383 - CURRENTDOW is not ISO normalised (ISO 8601 says sunday should be 7 not 0)
CURRENTDOW is not ISO normalised (ISO 8601 says sunday should be 7 not 0)
Status: NEW
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on: 1206
Blocks:
  Show dependency treegraph
 
Reported: 2005-12-25 14:09 UTC by DC2
Modified: 2014-07-07 12:00 UTC (History)
1 user (show)

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


Attachments

Description DC2 2005-12-25 14:09:26 UTC
Hello,
( my first bug report, french wikipedia)

 I tryed to use the {{CURRENTDOW}} variable for an article about...
...the ISO 8601 date normalisation ! 
and I found this variable was not ISO normalised :-(

 It's supposed to gives the day of the week. And usually, in computers, the 0 is given for 
sundays and so on (1=monday, etc.)
 But the international ISO says monday=1 up to sunday =7 (and not 0)

 in computers, the zero was ok because 7=0[mod7] (mathematics)
 but for display it's wrong

 I think in Wikipedia, the ISO norm should be displayed (because if someone try to use it, 
this will be required I suppose)

 For the moment, I made a CurrentDowISO Templates (with a case inside) wich gives the 
"right" day number to me. 

But I still suggest to change the actual definition of CURRENTDOW (with a if then else) to 
change this 0 value to 7. (before it will be used by many people)

 All for a better Wiki.  Thank you. (Beyond: Merry Xmas !)
David.
Comment 1 Brion Vibber 2006-01-10 20:41:40 UTC
What's the purpose of changing it? What would this accomplish?
Comment 2 DC2 2006-01-26 15:43:10 UTC
(In reply to comment #1)
> What's the purpose of changing it? What would this 
accomplish?

Be sure a lot of countries start the week with monday (not 
sunday) and then expect sunday to be = 7. Only some countries 
(US for example) and programmers have 0 and sunday for first 
day. Programmers : it's because 0 = 7 modulo 7 so it works 
fine in progs whatever the country is.

If you assume it may be used, it will be to write the number 
of the day. And there's a normalized (international, US 
included) way to write this number. So, it may be better to 
return it in the normalized way. I also use it in an article 
on Wiki.

I'd return the question : if you think the non-normalized way 
may be used (because US, because programmers), so, suggest to 
have 2 possibilities. USUALCurrentDow and ISOCurrentDow for 
example. 

 Was it really such a stupid idea to have the normalized way
 ?!?

Note: the suggestion may be extanded to
 CurrentDay (just what we said)
 CurrentWeek ( 01, 02... the actual gives 1, 2 on one digit 
only, the same norm says 2 digits always)
 CurrentDay ( same)

 for each of them a USUAL (maybe) and ISO (at least) version 
should be accessible...
Comment 3 Ross M 2006-01-30 01:23:29 UTC
This is easily accomplished via templates; see
http://uncyclopedia.org/wiki/Template:Dow
Comment 4 DC2 2006-01-30 18:58:06 UTC
No, please, You, do read my message...

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


Navigation
Links