Uploaded image for project: 'XalanJ2'
  1. XalanJ2
  2. XALANJ-2536

The ExsltDatetime.dateTime() function does not work in a timezone like India Standard Time (GMT+5:30)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.7.1
    • None
    • Xalan-extensions
    • Security Level: No security risk; visible to anyone (Ordinary problems in Xalan projects. Anybody can view the issue.)
    • This problem occurs when the time zone offset has a non-zero minute component for example, IST uses GMT+5:30.
    • PatchAvailable

    Description

      When the default time zone offset has a non-zero minute component, this bug causes the date-time() to return a string that is not a valid xsd:dateTime.

      For example, when the default time zone is IST, then the format looks like:

      2011-04-19T22:08:16+05:1800000

      It is expected to be

      2011-04-19T22:08:16+05:30

      Attachments

        1. ExsltDatetime.java
          42 kB
          John Cheng
        2. TestExsltDatetimeOffset.java
          1 kB
          John Cheng

        Activity

          People

            Unassigned Unassigned
            johnlicheng John Cheng
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: