Selected Locale Should Drive Date Display Format

Description

Purpose: Use tenant-level locale setting to drive date display format.

Scenarios

  1. Scenario

    • Given Current loans on User Details

    • When selected locale has been set

    • Then the loan date displaying should display in the date format associated with the selected locale

  2. Scenario

    • Given View full history popup for Current loans on User Details

    • When selected locale has been set

    • Then the loan and return dates displaying should display in the date format associated with the selected locale

Environment

None

Potential Workaround

None

Checklist

hide

TestRail: Results

Activity

Show:

Mike Taylor May 8, 2017 at 11:33 AM

Added rendering of dates in full loan history, which I overlooked on Saturday. https://github.com/folio-org/ui-users/commit/5bd9e11c39224240a3f1b021d114ea51e3949527

Cate Boerema May 8, 2017 at 6:59 AM

That's great!!

Mike Taylor May 5, 2017 at 11:27 PM

After all the setup, actually fixing this turned out to be embarrassingly simple. It is, almost literally, a one-line fix now that the infrastructure is in place: see https://github.com/folio-org/ui-users/commit/94afd98c3dbd420878999ba25ff30f7b3b0a1628

(The reason it's not just a single line is only that I needed to extend the propTypes validation.)

Mike Taylor May 4, 2017 at 2:36 PM

I can do the initial version of this using new Date().toLocaleDateString('en-GB').

Done

Details

Assignee

Reporter

Priority

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs
Created April 3, 2017 at 12:59 PM
Updated May 30, 2017 at 12:05 PM
Resolved May 5, 2017 at 11:27 PM
TestRail: Cases
TestRail: Runs

Flag notifications