Respect user's 12/24 hour preference consistently (#29237)

* Respect user's 12/24 hour preference consistently

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Update test

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski
2025-02-11 14:16:59 +00:00
committed by GitHub
parent f2fae82e32
commit 6fa8032caa
3 changed files with 11 additions and 4 deletions

View File

@@ -241,7 +241,10 @@ describe("<UserInfo />", () => {
_locale,
opts,
) {
return origDate.call(this, "en-US", opts);
return origDate.call(this, "en-US", {
...opts,
hourCycle: "h12",
});
});
mockClient.doesServerSupportExtendedProfiles.mockResolvedValue(true);
mockClient.getExtendedProfileProperty.mockResolvedValue("Europe/London");