Uploaded image for project: 'External DAMs'
  1. External DAMs
  2. EXTDAM-291

Bynder - Make date time pattern more configurable

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Neutral
    • None
    • None
    • None
    • None
    • 3

    Description

      This is the follow up ticket for EXTDAM-283 to improve Bynder date time parser

      Problem

      In class BynderAsset the date is parsed with this format


      inputFormatter 
      = DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss'Z'", Locale.ENGLISH);

      But it seems that we receive also the milliseconds '2021-07-27T15:04:04.707Z'

      Solution

      Make inputFormatter (yyyy-MM-dd'T'HH:mm:ss'Z') configurable

      Propose second dateTime pattern in try catch in case the parse throw error (the problem may come from Bynder instance when user update multiple assets and the dateModified append milliseconds 

      Workaround

      Development notes

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                yen.lactue Yen Lac Tue
                AuthorX
                Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:

                  Checklists

                    Task DoD

                    Time Tracking

                      Estimated:
                      Original Estimate - Not Specified
                      Not Specified
                      Remaining:
                      Remaining Estimate - Not Specified
                      Not Specified
                      Logged:
                      Time Spent - 0.25h
                      0.25h