Expiration date and Date enrolled off by 1 in time zones

Description

Steps to Reproduce:

  1. Set time zone to Pacific/Niue (= UTC-11:00) in Settings/Tenant/Language and Localisation

  2. Open a user that has expiration date and date enrolled

  3. Notice "Expiration date" and "Date enrolled" shown in UI

  4. Set time zone to Pacific/Apia (= UTC+13:00) in Settings/Tenant/Language and Localisation

  5. Open the same user as in step 2

  6. 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:

 

 

CSP Request Details

None

CSP Rejection Details

None

Potential Workaround

None

Attachments

2

Checklist

hide

TestRail: 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

Assignee

Reporter

Tester Assignee

Priority

Sprint

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