Last modified: 2012-11-01 18:28:56 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 T39038, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 37038 - issue with the way special type Date treats pre-1582 years
issue with the way special type Date treats pre-1582 years
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
unspecified
All Linux
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-05-23 07:12 UTC by contrafibularity
Modified: 2012-11-01 18:28 UTC (History)
3 users (show)

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


Attachments

Description contrafibularity 2012-05-23 07:12:57 UTC
There appears to be an issue with the way that special Type:Date handles pre-1582 (pre-Gregorian) dates. For instance, when the value specified is "1500", SMW somehow translates this as "1499". Perhaps 1500 gets interpreted as 1 January minus one day = 31 December, 1499? 

Btw, this is not a new issue. In fact, I remember the exact same problem occurring on a different system about a year ago. 

Specifications: MW 1.17, MySQL 5.5.23, Php 5.3.10, SMW 1.7.1
Comment 1 contrafibularity 2012-05-23 08:21:20 UTC
Update. I just got a different (related?) error: some of the values are instead set to 1 January 1970, for no apparent reason.
Comment 2 contrafibularity 2012-06-07 18:49:55 UTC
You can probably safely ignore the second comment, which does appear to be unrelated. 

I've looked at some 'SMWs of the month' and noticed that Familypedia is having the same issue. Is it perhaps a PHP problem?
Comment 3 contrafibularity 2012-06-26 09:31:27 UTC
Could it be that "1500" is shown as "1499" because it is interpreted as "1 January 1500" and the year didn't necessarily start on 1 January?
Comment 4 Markus Krötzsch 2012-11-01 18:28:56 UTC
The problem should be fixed in the current development version with change https://gerrit.wikimedia.org/r/#/c/28666/ See also the comments for Bug 41126.

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


Navigation
Links