Uploaded image for project: 'ui-users'
  1. ui-users
  2. UIU-2623

Expiration date and Date enrolled off by 1 in time zones

    XMLWordPrintable

Details

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

      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:

      <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

            Activity

              People

                mattjlc Matt Connolly
                julianladisch Julian Ladisch
                Patty Wanninger Patty Wanninger
                Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases