File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/Pages/ChartStore/ChartDetails Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,9 @@ import {
10
10
ButtonStyleType ,
11
11
ButtonVariantType ,
12
12
ComponentSizeType ,
13
+ dateComparatorBySortOrder ,
13
14
handleAnalyticsEvent ,
15
+ handleUTCTime ,
14
16
Icon ,
15
17
ImageWithFallback ,
16
18
PortalContainer ,
@@ -264,7 +266,7 @@ const DeploymentsTableDeployedByCellComponent = ({ row }: DeploymentsTableCellCo
264
266
const DeploymentsTableDeployedAtCellComponent = ( { row } : DeploymentsTableCellComponentProps ) => {
265
267
const { deployedAt } = row . data
266
268
267
- return < span className = "flex left fs-13 lh-20 cn-9" > { deployedAt ? moment ( deployedAt ) . fromNow ( ) : '-' } </ span >
269
+ return < span className = "flex left fs-13 lh-20 cn-9" > { handleUTCTime ( deployedAt , true ) || '-' } </ span >
268
270
}
269
271
270
272
const DeploymentsTableActionMenuCellComponent = ( { row, onDelete } : DeploymentsTableCellComponentProps ) => {
@@ -373,7 +375,7 @@ export const DEPLOYMENTS_TABLE_COLUMNS: DeploymentsTableProps['columns'] = [
373
375
} ,
374
376
CellComponent : DeploymentsTableDeployedAtCellComponent ,
375
377
isSortable : true ,
376
- comparator : stringComparatorBySortOrder ,
378
+ comparator : dateComparatorBySortOrder ,
377
379
} as DeploymentsTableProps [ 'columns' ] [ 0 ] ,
378
380
{
379
381
field : 'actionMenu' ,
You can’t perform that action at this time.
0 commit comments