Use react-intl tools for date/time formatting

Description

This is a continuation of work described by in STCOR-109.

Environment

None

Potential Workaround

None

Checklist

hide

TestRail: Results

Activity

Show:

Zak BurkeDecember 6, 2017 at 1:51 PM

I wonder if it would be valuable to introduce a new lib stripes-utils where we could start collecting those little reusable functions.

Or stash things of this nature inside stripes-components/util/. Either way, I agree that formatting functions such as these should be defined in one place only.

Michal KuklisDecember 6, 2017 at 1:42 PM

Sound good Zak.

FYI I plan to use the formatDate and formatTime functions exposed by react-intl https://github.com/yahoo/react-intl/wiki/API#date-formatting-apis instead of the <FormattedDate> and <FormattedTime> components because they are less verbose. There is also no formatDateTime so I probably will end up keeping it in the utils and just use react-intl formatDate and formatTime inside. I wonder if it would be valuable to introduce a new lib stripes-utils where we could start collecting those little reusable functions.

Zak BurkeDecember 6, 2017 at 1:32 PM

Closing STCOR-109 in favor of this since it's all that's left.

Done

Details

Assignee

Reporter

Labels

Priority

Fix versions

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created December 5, 2017 at 6:13 PM
Updated September 4, 2018 at 12:09 PM
Resolved December 7, 2017 at 7:02 PM
TestRail: Cases
TestRail: Runs