element-web/test/test-utils
Michael Telatynski 3c52ba0c92
Use Intl to localise dates and times (#11422)
* Use Intl to generate better internationalised date formats

* Get `Yesterday` and `Today` from Intl also

* Correct capitalisation blunder

* Fix formatTime include weekday

* Iterate

* Fix tests

* use jest setSystemTime

* Discard changes to cypress/e2e/settings/general-user-settings-tab.spec.ts

* Discard changes to res/css/_components.pcss

* Discard changes to res/css/views/elements/_LanguageDropdown.pcss

* Discard changes to src/components/views/elements/LanguageDropdown.tsx

* Add docs & tests for getDaysArray & getMonthsArray

* Discard changes to test/components/structures/__snapshots__/MatrixChat-test.tsx.snap

* Consolidate consts

* Improve testing & documentation

* Update snapshot

* Apply suggestions from code review

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>

* Iterate

* Clarify comments

* Update src/DateUtils.ts

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>

* Specify hourCycle

* Discard changes to test/components/views/settings/devices/DeviceDetails-test.tsx

* Update comments

---------

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
2023-08-21 19:38:59 +00:00
..
audio.ts
beacon.ts Use Intl to localise dates and times (#11422) 2023-08-21 19:38:59 +00:00
call.ts Switch to importing more things from the main js-sdk export (#11377) 2023-08-10 08:01:14 +00:00
client.ts Support Matrix 1.1 (drop legacy r0 versions) (#9819) 2023-08-14 09:25:13 +01:00
composer.ts
console.ts
date.ts
events.ts
index.ts
location.ts Use Intl to localise dates and times (#11422) 2023-08-21 19:38:59 +00:00
oidc.ts Switch to importing most things from the main matrix-js-sdk export (#11406) 2023-08-15 15:00:17 +00:00
platform.ts
poll.ts
pushRules.ts
relations.ts Switch to importing more things from the main js-sdk export (#11376) 2023-08-09 15:10:54 +00:00
room.ts
test-utils.ts Use Intl to localise dates and times (#11422) 2023-08-21 19:38:59 +00:00
threads.ts Switch to importing more things from the main js-sdk export (#11394) 2023-08-14 08:58:55 +00:00
utilities.ts Move `mediaDevices` mock out of `setupManualMocks` (#11413) 2023-08-16 08:29:34 +00:00
wrappers.tsx