Uploaded image for project: 'Suggestion Box'
  1. Suggestion Box
  2. SUGGEST-193

PropertyUtil should be able to handle time zones.

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Accepted
    • Priority: Neutral
    • Resolution: Unresolved
    • Labels:
      None

      Description

      We have the following UseCase:

      Archiving data, Messages in our case

      • We read the Messages from the Messages Workspace via RestAPI
      • We create the "same" message in a newly created Messages_archive Workspace.
      • All date fields get the current date, so some Information is lost.
      • We would expect: Reading a node via Rest-API and passing it unmodified to the create-node call, would Keep all Information.
      • Going deeper inside, it seems the Problem is here:

        info.magnolia.jcr.util.PropertyUtil.class
        Our System gives the Dates like "2019-12-11T11:49:55.488+01:00"
        This leads to an exception in line 183 (second = Integer.parseInt(timeTokens[2])
        It seems TimeZone is not handled anyway

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            szach Siegried Zach
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Date of First Response: