Details
-
Bug
-
Status: Closed (View Workflow)
-
TBD
-
Resolution: Done
-
ERM Sprint 102, ERM Sprint 103
-
Bienenvolk
Description
Overview:
Steps to Reproduce:
- Use a Folio tenant with a timezone behind UTC (e.g. New York)
- Create a license with a start date of 1st January 2020
- Switch to Agreements app and edit an agreement
- Go to add license to agreement and choose "Link license"
- See search plugin
- 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} /> : ''),