Make Date Pickers Locale-Aware

Description

Purpose: Modify date pickers so that the expected input format matches the display format determined by selected locale

Scenarios

  1. Scenario

    • Given the selected locale maps to date format A (for example, MM/DD/YYYY)

    • When the ghost text in a date field is displayed

    • Then, the ghost text should display in format A (in this case, as MM/DD/YYYY)

  2. Scenario

    • Given the selected locale maps to date format A

    • When the selected date is displayed in a date field

    • Then, it should display as format A

  3. Scenario

    • Given the selected locale maps to date format A

    • When a date is manually entered into a date field

    • Then, it should be assume the date is entered in format A and processed accordingly (for save and validation, for example)

Environment

None

Potential Workaround

None

relates to

Checklist

hide

TestRail: Results

Activity

Show:

Charlotte Whitt July 3, 2017 at 5:00 PM

Manually tested in http://folio-testing.aws.indexdata.com/ in Chrome, Settings:
@folio/organization 2.0.1-SNAPSHOT.43 depends on:

  • configuration 1.0 (0.0.9 available) which is as required but present only in an incompatible version - in orange highlight in the About page.

The Date picker is tested for all the different settings for locale rendering dates etc, in Settings > Organization > 'Language and localization'.

Expected:
The date is consequently changed to the date format defined as locale in Settings > Organization > 'Language and localization' - not just in the user detail page, but all through out the system where dates are displayed.

Actually:
1. All looks good in the User Details pane - for all language and localization settings (Eng_US, Eng_GB, Danish, German, and Hungarian)
2. When using scan (check out item to a patron), then the loan date is returned in English_US date format, also when the locale-aware is set to 'Language and localization' different from English_US.

Will close the issue (story), and file a bug.

John Coburn June 19, 2017 at 1:38 PM

Datepickers should work as expected now... no modification necessary. Datefields in the User Edit form should automatically be displaying the same format as displayed in the User Details pane since both are now using the same data from Stripes Context.

Cate Boerema June 19, 2017 at 10:26 AM

Hi guys. I see this is marked In Review. When this is pushed to FOLIO demo-test, do we expect things to work per the scenarios in the user story or is there more work that needs to be done to make use of the changed component?

John Coburn June 14, 2017 at 3:38 PM
Edited

John Coburn June 14, 2017 at 1:58 PM

Thanks Mike! putting off closing this to incorporate exactly that sort of change.

Done

Details

Assignee

Reporter

Priority

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs
Created June 12, 2017 at 7:11 AM
Updated July 11, 2017 at 10:49 AM
Resolved July 3, 2017 at 5:04 PM
TestRail: Cases
TestRail: Runs