1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-20 00:08:02 +01:00

fix: last seen instance with timezone (#6376)

This commit is contained in:
Mateusz Kwasniewski 2024-02-28 13:00:07 +01:00 committed by GitHub
parent 2bf46d9369
commit 3aff5d80a0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 3 deletions

View File

@ -1,5 +1,4 @@
import { FC, useEffect, useMemo } from 'react';
import { formatDateYMDHMS } from 'utils/formatDate';
import { useRequiredPathParam } from 'hooks/useRequiredPathParam';
import { useConnectedInstancesTable } from './useConnectedInstancesTable';
import { ConnectedInstancesTable } from './ConnectedInstancesTable';
@ -55,7 +54,7 @@ export const ConnectedInstances: FC = () => {
instanceId,
ip: clientIp || '',
sdkVersion: sdkVersion || '',
lastSeen: lastSeen ? formatDateYMDHMS(lastSeen) : '',
lastSeen: lastSeen || '',
});
if (!currentEnvironment) {
return [];

View File

@ -2,7 +2,7 @@ import { useMemo } from 'react';
import { HighlightCell } from 'component/common/Table/cells/HighlightCell/HighlightCell';
import { useTable, useGlobalFilter, useSortBy } from 'react-table';
import { sortTypes } from 'utils/sortTypes';
import { TimeAgoCell } from '../../common/Table/cells/TimeAgoCell/TimeAgoCell';
import { TimeAgoCell } from 'component/common/Table/cells/TimeAgoCell/TimeAgoCell';
type ConnectedInstancesTableData = {
instanceId: string;