https://bugzilla.wikimedia.org/show_bug.cgi?id=30148

[email protected] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #11 from [email protected] ---
I just wanted to add a few points that may be of interest to someone.

(1) This error may become more common with wikidata and its time datatype. I
was looking at some errors in XOWA log files for ca.wikipedia.org and
discovered that Saint Nicholas (https://ca.wikipedia.org/wiki/Nicolau_de_Mira)
shows up as having died in 2003. See
https://ca.wikipedia.org/wiki/Categoria:Morts_el_2003 . He died in 343 A.D..

For those interested, here's the process:

* https://ca.wikipedia.org/wiki/Nicolau_de_Mira calls {{Sant}}
* {{Categoria per any de defunció}} is called
* {{#invoke:Wikidata|formatStatements|property=P570|formatting=year}} is called
* www.wikidata.org/wiki/q44269 defines P570 (year of death) as
+000000000343-12-06T00:00:00Z
* Note that this date adds an extra 0 at the beginning. Presumably this is a
bug related to dates with a year < 1000.
* This differs from other recent years of death 
: For example, Albert Einstein (www.wikidata.org/wiki/q937) has this as his
P570
+00000001955-04-18T00:00:00Z
* Module:Wikidata calls lang:formatDate("Y", string.sub(d, 9, 18))
: This effectively becomes {{#time:Y|00343-12-0}} which generates 2003 (see
note (2) below for more info)
* The end result is Nicolau_de_Mira is listed as dying in year 2003:
https://ca.wikipedia.org/wiki/Categoria:Morts_el_2003

(2) Any 5 digit year appears to produce a 4 digit year using the following
method: "200" + 5th digit

=== 5 digit years ===
{{#time:Y-m-d|00002-4-5}}<br/>  -> 2002
{{#time:Y-m-d|54321-4-5}}<br/>  -> 2001
{{#time:Y-m-d|12345-4-5}}<br/>  -> 2005
{{#time:Y-m-d|55555-4-5}}<br/>  -> 2005

(3) 6+ digit years are basically random, depending on what the last 4 digits
are. I've gotten these type of results: current year; "19"+last_2_digits;
"200"+last_digit; random substrings in the string; invalid time

You can start with these examples, and then try reversing them, or inputting
random numbers

=== 6-14 digit years
{{#time:Y-m-d|12345-4-5}}<br/>       
{{#time:Y-m-d|123456-4-5}}<br/>      
{{#time:Y-m-d|1234567-4-5}}<br/>     
{{#time:Y-m-d|12345678-4-5}}<br/>    
{{#time:Y-m-d|123456789-4-5}}<br/>   
{{#time:Y-m-d|1234567890-4-5}}<br/>  
{{#time:Y-m-d|12345678901-4-5}}<br/> 
{{#time:Y-m-d|123456789012-4-5}}<br/>
{{#time:Y-m-d|1234567890123-4-5}}<br/>
{{#time:Y-m-d|12345678901234-4-5}}<br/>

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to