User set Date and Time formatting aren't respected in react components #6567
Labels
category: core
WC Payments core related issues, where it’s obvious.
focus: misc or unknown
Issues that need to be added to a focus area (aka "needs focus").
focus: reporting
good first issue
The issue is a good candidate for the first community contribution/for a newcomer to the team.
status: blocked
The issue is blocked from progressing, waiting for another piece of work to be done.
type: bug
The issue is a confirmed bug.
Describe the bug
Date and time formats are user settable in WordPress. WCPay components do not use these settings instead opting to hardcode formats.
To Reproduce
NB: This also applies to Deposits, Disputes, Loans, and more.
Actual behavior
Date and time formats are hardcoded inside react components across WCPay. User settings are not respected.
Screenshots
Expected behavior
User set date/time formats should be used wherever possible
Sample Snippets:
woocommerce-payments/client/disputes/index.tsx
Lines 204 to 207 in 23b58e9
woocommerce-payments/client/disputes/index.tsx
Lines 213 to 216 in 23b58e9
The text was updated successfully, but these errors were encountered: