Add test for useLocalizeDate
#2588
Labels
backlog
Out of scope for the current iteration but it will be evaluated in a future release.
feature-request
Azure report label
technical-debt
Improve maintenance, follow best practices, test coverage, etc.
Feature Request
Description
While we are adding the
useLocalizeDate
hook, we found out we didn't testgetLocaleString
function at all.But when we try to add the test, we are hitting timezone problem. Timezone of the CI box and local box could be different.
To mitigate the problem, we need to add some code in production codebase to allow the user to select timezone. For example, the
options
passed toIntl.DateTimeFormat
should have{ timeZone: 'utc' }
.Instead of doing it in the PR, we are adding a new issue and address it later.
Actual code
[Enhancement]
The text was updated successfully, but these errors were encountered: