Expiration date and Date enrolled off by 1 in time zones
Description
CSP Request Details
None
CSP Rejection Details
None
Potential Workaround
None
Attachments
2
Checklist
hideTestRail: Results
Activity
Show:
Zak Burke July 15, 2022 at 1:35 PM
tested in folio-snapshot, confirming date-values displayed in the UI match those in API requests regardless of the tenant's timezone.

patty.wanninger July 11, 2022 at 9:31 PM
I am not sure how to test this ticket.

Charlotte Whitt July 11, 2022 at 10:47 AM
- could you please test this ticket. Thanks a lot in advance.
Zak Burke June 8, 2022 at 6:14 PM
Thanks, ! I bet the incorrect values are being displayed with <FormattedDate>
(which is subject to the vagaries of a tenant's timezone) instead of <FormattedUTCDate>
which correctly formats dates per tenant locale, but always leaves the date-value itself as-is.
Done
Details
Details
Assignee

Reporter

Tester Assignee

Priority
Sprint
None
Development Team
Prokopovych
Fix versions
Release
Morning Glory (R2 2022)
RCA Group
Implementation coding issue
Affected Institution
St. Michael's College
University of Alabama
TestRail: Cases
Open TestRail: Cases
TestRail: Runs
Open TestRail: Runs
Created June 7, 2022 at 9:00 AM
Updated July 15, 2022 at 2:15 PM
Resolved July 15, 2022 at 1:35 PM
TestRail: Cases
TestRail: Runs
Steps to Reproduce:
Set time zone to Pacific/Niue (= UTC-11:00) in Settings/Tenant/Language and Localisation
Open a user that has expiration date and date enrolled
Notice "Expiration date" and "Date enrolled" shown in UI
Set time zone to Pacific/Apia (= UTC+13:00) in Settings/Tenant/Language and Localisation
Open the same user as in step 2
Notice "Expiration date" and "Date enrolled" shown in UI
Expected Results:
The date doesn't change when changing the time zone
Actual Results:
Date is off by one in one time zone
Time zone Pacific/Niue (= UTC-11:00):
Time zone Pacific/Apia (= UTC+13:00):
Additional Information:
Date of birth is correct. The same method should be applied to expiration date and date enrolled.
The back-end should store the date without time and time zone; the front-end should ignore the time and time zone if they exist.
Source code: