Skip to content

Commit 4934baa

Browse files
fix last handshake display calc
1 parent 902f33e commit 4934baa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎new-ui/src/pages/full/LocationDetailsPage/LocationDetailsPage.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export const LocationDetailsPage = () => {
5353
label: 'Latest Handshake',
5454
value:
5555
data?.last_handshake != null
56-
? `${formatDuration(dayjs.duration(data.last_handshake, 'seconds'))} ago`
56+
? `${formatDuration(dayjs.duration(dayjs().diff(dayjs.unix(data.last_handshake))))} ago`
5757
: fallback,
5858
},
5959
],

0 commit comments

Comments
 (0)