Details
-
Bug
-
Status: Closed (View Workflow)
-
P2
-
Resolution: Done
-
None
-
Prokopovych - Sprint 142, Prokopovych - Sprint 143, Prokopovych - Sprint 144
-
Prokopovych
-
Morning Glory (R2 2022)
-
St. Michael's College, University of Alabama
-
Implementation coding issue
Description
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:
<FormattedDate value={user.expirationDate} />
<FormattedDate value={record.proxy.expirationDate} />
<FormattedDate value={user.enrollmentDate} />
<FormattedDate value={user.personal.dateOfBirth} timeZone="UTC" />
TestRail: Results
Attachments
Issue Links
- is duplicated by
-
UIU-919 User Expiration Date Showing 1 Day Earlier in Edit Than View
-
- Closed
-
- relates to
-
MODUIMP-32 Mod-user-import seems to use UTC time not local time
-
- Closed
-