Open brucealdridge opened 1 year ago
7293502-zen
@mgascam, I'm not sure you meant to close this issue with #9640. It looks like that PR just alters some tests, whereas I believe this issue will require code changes in addition to test changes.
Thanks @brucealdridge, you are right, this was closed by mistake. Reopening.
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:
https://github.com/Automattic/woocommerce-payments/blob/23b58e9ea093f9fd001c761abfda30bc13234a81/client/disputes/index.tsx#L204-L207
https://github.com/Automattic/woocommerce-payments/blob/23b58e9ea093f9fd001c761abfda30bc13234a81/client/disputes/index.tsx#L213-L216