Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DFDL-1046

No way to specify 'no timezone' for ICU library

XMLWordPrintableJSON

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 1.0.0
    • None
    • None
    • None

      The ICU library does not provide a way to pass 'no timezone' to the SimpleDateFormat/Calendar objects. We need a way to specify 'no timezone' to be compliant with the dfdl:timezoneFromDateTime, and the like, functions.

      Essentially, the function will never be able to return an 'empty string' when there is no timezone.

      From spec:

      "Returns the timezone component of $arg if
      any as an xs:string. The $arg is of type
      xs:dateTime, xs:date and xs:time respectively.

      If $arg has a timezone component, then the
      result is a string in the format of an ISO Time
      zone designator. Interpreted as an offset from
      UTC, its value may range from +14:00 to -
      14:00 hours, both inclusive. The UTC time
      zone is represented as "+00:00". If the $arg
      has no timezone component, then "" (empty
      string) is returned."

              efinnegan Elizabeth Finnegan
              twise Taylor Wise
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: