Uploaded image for project: 'Runtime'
  1. Runtime
  2. RUNTIME-3928

AbstractDateTimeElementType use wrong formatter to format value

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.8.0, 4.7.7
    • None
    • None
    • None
    • 4.8.0 M6

      AbstractDateTimeFormatter use DateTimeFormatter.ISO_OFFSET_DATE_TIME format
      but this format ignore nanosecond if equals to 0
      For example the format value will be 2024-01-10T15:45:25Z instead of 2024-01-10T15:45:25.000Z
      As result, the summary mail in workspaces failed because one activity has been stored at 15:45:25.000 with the following error:

      Caused by: java.text.ParseException: Unparseable date: "2024-01-10T15:45:25Z"
      	at java.base/java.text.DateFormat.parse(DateFormat.java:399)
      	at org.apache.cocoon.transformation.I18nTransformer.formatDate_Time(I18nTransformer.java:1983)
      	... 98 more
      

            laurence Laurence Aumeunier
            laurence Laurence Aumeunier
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: