From a213bcb0148badbcb750b1e45697d0e46ff810b6 Mon Sep 17 00:00:00 2001 From: regexowl Date: Tue, 26 Mar 2024 09:32:37 +0100 Subject: [PATCH] Wizard: Resolve deprecation warning in test output This resolves the following warning: `Deprecation warning: value provided is not in a recognized RFC2822 or ISO format.` in test output. --- .../CreateImageWizard/formComponents/ReleaseLifecycle.tsx | 2 +- .../CreateImageWizardV2/steps/ImageOutput/ReleaseLifecycle.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Components/CreateImageWizard/formComponents/ReleaseLifecycle.tsx b/src/Components/CreateImageWizard/formComponents/ReleaseLifecycle.tsx index 290c6aad..740dfac3 100644 --- a/src/Components/CreateImageWizard/formComponents/ReleaseLifecycle.tsx +++ b/src/Components/CreateImageWizard/formComponents/ReleaseLifecycle.tsx @@ -30,7 +30,7 @@ import { toMonthAndYear } from '../../../Utilities/time'; Chart.register(annotationPlugin); Chart.register(...registerables); -const currentDate = new Date().toString(); +const currentDate = new Date().toISOString(); export const chartMajorVersionCfg = { data: { diff --git a/src/Components/CreateImageWizardV2/steps/ImageOutput/ReleaseLifecycle.tsx b/src/Components/CreateImageWizardV2/steps/ImageOutput/ReleaseLifecycle.tsx index 873adea3..c29d80b4 100644 --- a/src/Components/CreateImageWizardV2/steps/ImageOutput/ReleaseLifecycle.tsx +++ b/src/Components/CreateImageWizardV2/steps/ImageOutput/ReleaseLifecycle.tsx @@ -26,7 +26,7 @@ import 'chartjs-adapter-moment'; Chart.register(annotationPlugin); Chart.register(...registerables); -const currentDate = new Date().toString(); +const currentDate = new Date().toISOString(); export const chartMajorVersionCfg = { data: {