Skip to content

Commit

Permalink
fix(pci-workflow): execution date format
Browse files Browse the repository at this point in the history
ref: DTCORE-2747
Signed-off-by: Florian Renaut <[email protected]>
  • Loading branch information
frenautvh committed Oct 10, 2024
1 parent 213d2d8 commit 2c110a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@ describe('useExecutions tests', () => {
id: 'project_id_1',
state: 'SUCCESS',
executedAt: '2024-07-18T01:05:29Z',
executedAtDate: '18 juillet. 2024',
executedAtDate: '18 juil. 2024',
executedAtTime: format(parseISO('2024-07-18T01:05:29'), 'hh:mm:ss'),
},
{
id: 'project_id_2',
state: 'SUCCESS',
executedAt: '2024-07-17T01:05:24Z',
executedAtDate: '17 juillet. 2024',
executedAtDate: '17 juil. 2024',
executedAtTime: format(parseISO('2024-07-17T01:05:24'), 'hh:mm:ss'),
},
]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const useWorkflowExecutions = (
executedAtDate: format(
// remove Z timezone to treat as UTC date
parseISO(exec.executedAt?.replace(/Z$/, '')),
"dd MMMM'.' yyyy",
'dd MMM yyyy',
{
locale: locales[userLocale],
},
Expand Down

0 comments on commit 2c110a6

Please sign in to comment.