You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Andy Seaborne (JIRA)" <ji...@apache.org> on 2012/07/29 22:29:34 UTC

[jira] [Resolved] (JENA-287) Timezones with non-zero minutes cause endcode/decode problems.

     [ https://issues.apache.org/jira/browse/JENA-287?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andy Seaborne resolved JENA-287.
--------------------------------

       Resolution: Fixed
    Fix Version/s: TDB 0.9.3

Affects negative timezones, with non-zero minutes.
                
> 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
>            Assignee: Andy Seaborne
>             Fix For: TDB 0.9.3
>
>
> 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