Uploaded image for project: 'ERM Platform'
  1. ERM Platform
  2. ERM-1237

Incorrect date in ui-plugin-find-license

    XMLWordPrintable

    Details

    • Template:
      Standard Bug Write-Up Format
    • Sprint:
      ERM Sprint 102, ERM Sprint 103
    • Development Team:
      ERM

      Description

      Overview:
      Steps to Reproduce:

      1. Use a Folio tenant with a timezone behind UTC (e.g. New York)
      2. Create a license with a start date of 1st January 2020
      3. Switch to Agreements app and edit an agreement
      4. Go to add license to agreement and choose "Link license"
      5. See search plugin
      6. Search for your license - note start date is 31st December 2019 instead of 1st January 2020

      Expected Results:
      Start date in plugin results should be 1st January 2020

      Additional Information:
      Think it is because https://github.com/folio-org/ui-plugin-find-license/blob/b2c17223a5c1ab9ff0e99f9cd2295dda52244090/src/View.js#L73 uses

          startDate: ({ startDate }) => (startDate ? <FormattedDate value={startDate} /> : ''),
      
      

      instead of

      
          startDate: license => (license.startDate ? <FormattedUTCDate value={license.startDate} /> : ''),
      

        TestRail: Results

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                ostephens Owen Stephens
                Reporter:
                ostephens Owen Stephens
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    TestRail: Runs

                      TestRail: Cases