Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/oss-console/src/common/formatters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const DatetimeInput: FC<InputProps> = (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)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2224,7 +2224,7 @@ describe('LaunchForm: Workflow', () => {
// expect datetime to be correctly prepopulated
await waitFor(() => {
// bool should be true
expect(datetimeInput!).toHaveValue('10/17/2023 19:07:39');
expect(datetimeInput!).toHaveValue('2023-10-17 19:07:39');
});

// expect no validation error
Expand Down