File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
src/components/app/details/appDetails Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ import { useParams } from 'react-router-dom'
20
20
import Tippy from '@tippyjs/react'
21
21
import {
22
22
ConditionalWrap ,
23
+ DATE_TIME_FORMATS ,
23
24
DeploymentAppTypes ,
24
25
getIsManualApprovalConfigured ,
25
26
handleUTCTime ,
@@ -170,7 +171,7 @@ export const SourceInfo = ({
170
171
const renderDevtronAppsEnvironmentSelector = ( environment ) => {
171
172
// If moving to a component then move getIsApprovalConfigured with it as well with memoization.
172
173
const isApprovalConfigured = getIsApprovalConfigured ( )
173
- const lastSnapshotTime = appDetails ?. resourceTree ?. lastSnapshotTime ? handleUTCTime (
174
+ const relativeSnapshotTime = appDetails ?. resourceTree ?. lastSnapshotTime ? handleUTCTime (
174
175
appDetails . resourceTree . lastSnapshotTime ,
175
176
true ,
176
177
) : ''
@@ -202,12 +203,14 @@ export const SourceInfo = ({
202
203
</ div >
203
204
) }
204
205
{ /* Last snapshot time */ }
205
- { isAirGappedIsolatedEnv && lastSnapshotTime && (
206
+ { isAirGappedIsolatedEnv && relativeSnapshotTime && (
206
207
< Tooltip
207
208
content = {
208
209
< div className = "fw-4 lh-18 flexbox-col dc__ga-2" >
209
210
< h6 className = "fs-12 fw-6 cn-0 m-0" > Last snapshot received</ h6 >
210
- < p className = "m-0 fs-12 cn-50" > { lastSnapshotTime } </ p >
211
+ < p className = "m-0 fs-12 cn-50" >
212
+ { moment ( relativeSnapshotTime ) . format ( DATE_TIME_FORMATS . TWELVE_HOURS_FORMAT ) }
213
+ </ p >
211
214
</ div >
212
215
}
213
216
alwaysShowTippyOnHover
You can’t perform that action at this time.
0 commit comments