Andy Seaborne created JENA-287:
----------------------------------

             Summary: Timezones with non-zero minutes cause endcode/decode 
problems.
                 Key: JENA-287
                 URL: https://issues.apache.org/jira/browse/JENA-287
             Project: Apache Jena
          Issue Type: Bug
          Components: TDB
    Affects Versions: TDB 0.9.2
            Reporter: Andy Seaborne


Example:

public class DevMain
{
    public static void main(String[] args)
    {
        for ( int tz = 0 ; tz < 2 ; tz++ )
        {
            String x = String.format("2012-07-29T12:01:23-%02d:30", tz) ;
            System.out.println(x) ;
            Node n = Node.createLiteral(x, XSDDatatype.XSDdateTime) ;
            NodeId nid = NodeId.inline(n) ;
            if ( nid != null )
            {
                Node n1 = NodeId.extract(nid) ;
                if ( ! n.equals(n1) )
                    System.out.println("Different: "+n+" -> "+n1) ;
            }
            else
                System.out.println("Miss") ; 
        }
        System.out.println("DONE") ;
        System.exit(0) ;
    }
}
        

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to