From 995e6eecbb410c09dd52928dc40ea232f8bfe9be Mon Sep 17 00:00:00 2001 From: Tim Bauer <30375389+bimtauer@users.noreply.github.com> Date: Fri, 1 Mar 2024 14:15:13 +0100 Subject: [PATCH] Restore balance to the universe --- packages/oss-console/src/common/formatters.ts | 2 +- .../Launch/LaunchForm/LaunchFormComponents/DatetimeInput.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/oss-console/src/common/formatters.ts b/packages/oss-console/src/common/formatters.ts index ac8957535..853234613 100644 --- a/packages/oss-console/src/common/formatters.ts +++ b/packages/oss-console/src/common/formatters.ts @@ -62,7 +62,7 @@ export function formateDateRelative(input: Date, threshold = 24 * 60 * 60 * 1000 return moment.utc(input).fromNow(); } - return formatDate(input, 'MM/DD/YY HH:MM A'); + return formatDate(input, 'YYYY-MM-DD HH:MM A'); } /** Formats a date into a standard local format used throughout the UI diff --git a/packages/oss-console/src/components/Launch/LaunchForm/LaunchFormComponents/DatetimeInput.tsx b/packages/oss-console/src/components/Launch/LaunchForm/LaunchFormComponents/DatetimeInput.tsx index b266efb34..44685e9c3 100644 --- a/packages/oss-console/src/components/Launch/LaunchForm/LaunchFormComponents/DatetimeInput.tsx +++ b/packages/oss-console/src/components/Launch/LaunchForm/LaunchFormComponents/DatetimeInput.tsx @@ -41,7 +41,7 @@ export const DatetimeInput: FC = (props) => { }, }} ampm={false} - format="MM/DD/YYYY HH:mm:ss" + format="YYYY-MM-DD HH:mm:ss" label={label} onChange={handleChange} value={!value?.length ? null : moment(value)}