Skip to main content

IV26338: EXSLT DATE:DATE-TIME() INCORRECT FOR 30 MIN OFFSET TIMEZONES


Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • Error Message: N/A
    .
    Stack Trace: java.lang.StringIndexOutOfBoundsException: String
    index out of range: -1
            at java.lang.String.substring(String.java:1067)
    
            at
    com.ibm.xslt4j.org.apache.rnm1.xalan.lib.ExsltDatetime.date(Exsl
    tDatetime.java:165)
    .
    

Local fix

Problem summary

  • The EXSLT date:date-time() function is incorrect for timezones
    that are offset by 30 min, such as India Standard Time (IST)
    GMT+5:30 or Newfoundland Standard Time (NST, Java: CNT)
    GMT-3:30.
    The minute part of the timezone offset is calculated as the
    remainder of the total offset divided by the number of
    milliseconds in an hour - which yields a result in milliseconds
    instead of minutes.
    This works when the minute offset is 0, but yields 1800000 when
    it should be 30, as in the following
    example:2012-02-29T11:28:32-03:1800000
    

Problem conclusion

  • This defect will be fixed in:
    5.0.0 SR14
    6.0.0 SR11
    .
    The date:date-time() function now calculates the minute part of
    the timezone offset correctly.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV26338

  • Reported component name

    JAVA 5 XML/XSL

  • Reported component ID

    620500126

  • Reported release

    500

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-08-16

  • Closed date

    2012-08-16

  • Last modified date

    2012-08-16

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

    IV26339

Fix information

  • Fixed component name

    JAVA 5 XML/XSL

  • Fixed component ID

    620500126

Applicable component levels

  • R500 PSY

       UP

Rate this page:

(0 users)Average rating

Copyright and trademark information

IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.

Rate this page:


(0 users)Average rating

Add comments

Document information

Runtimes for Java Technology

XML


Software version:
5.0


Reference #:
IV26338


Modified date:
2012-08-16

Translate my page

Content navigation