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

            Bug ID: 64659
           Summary: Failure to format dates with timestamp that have 00
                    for month and/or day
           Product: MediaWiki extensions
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: WikidataRepo
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
       Web browser: ---
   Mobile Platform: ---

TimeValues that have timestamps such as '+00000001995-00-00T00:00:00Z' with
'00' for month and/or day gets converted to '1995-00-00T00:00:00Z' then is
passed through MWTimestamp( $timestamp ), which in turn does new DateTime(
$timestamp ) for TS_UNIX.

new DateTime( '1995-00-00T00:00:00Z' ) results in an object with date value of
'1994-11-30 00:00:00'.

MwIsoTimestampFormatter then considers the year invalid since original '1995'
!= '1994' and on failure, does fallback to outputting a timestamp.

Example of an item where this occurs on Wikidata is
https://www.wikidata.org/wiki/Q4119465

-- 
You are receiving this mail because:
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