test/fixtures: Update timestamps of mock composes

The format of the timestamps of mock composes was causing an error in msw browser after merging https://github.com/RedHatInsights/image-builder-frontend/pull/1137

This updates the mock timestamps to the format of the actual ones fetched from the API.
This commit is contained in:
regexowl 2023-08-07 12:01:39 +02:00 committed by Lucas Garfield
parent 523fe3af8c
commit 5b516a5270
3 changed files with 23 additions and 23 deletions

View file

@ -1,5 +1,5 @@
export const timestampToDisplayString = (ts) => {
// timestamp has format 2021-04-27 12:31:12.794809 +0000 UTC
// timestamp has format 2021-04-27T12:31:12Z
// must be converted to ms timestamp and then reformatted to Apr 27, 2021
if (!ts) {
return '';