[ https://issues.apache.org/jira/browse/JENA-1503?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16393519#comment-16393519 ]
ASF subversion and git services commented on JENA-1503: ------------------------------------------------------- Commit c656cf10734f4d6316c28e96090588425de8d981 in jena's branch refs/heads/master from [~andy.seaborne] [ https://git-wip-us.apache.org/repos/asf?p=jena.git;h=c656cf1 ] JENA-1503: Merge commit 'refs/pull/377/head' of https://github.com/apache/jena This closes #377. > Bug in XSDDateTime toString > --------------------------- > > Key: JENA-1503 > URL: https://issues.apache.org/jira/browse/JENA-1503 > Project: Apache Jena > Issue Type: Bug > Components: Datatypes > Reporter: Derek Law > Assignee: Andy Seaborne > Priority: Major > Labels: beginner, easyfix, newbie, patch > Attachments: proposed_fix.txt > > Original Estimate: 0.1h > Remaining Estimate: 0.1h > > toString() for the class org.apache.jena.datatypes.xsd.XSDDateTime generates > incorrect output when year value is between -999 and -1. > For example : the representation of date time "-0001-01-01T00:00:00" in > XSDDateTime class has data array of (-1,1,1,0,0,0,0,0,0) and mask = 15. > however, the toString() method incorrectly outputs "000-1-01-01T00:00:00" > proposed fix attached. -- This message was sent by Atlassian JIRA (v7.6.3#76005)