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:
parent
2bf46d9369
commit
3aff5d80a0
@ -1,5 +1,4 @@
|
|||||||
import { FC, useEffect, useMemo } from 'react';
|
import { FC, useEffect, useMemo } from 'react';
|
||||||
import { formatDateYMDHMS } from 'utils/formatDate';
|
|
||||||
import { useRequiredPathParam } from 'hooks/useRequiredPathParam';
|
import { useRequiredPathParam } from 'hooks/useRequiredPathParam';
|
||||||
import { useConnectedInstancesTable } from './useConnectedInstancesTable';
|
import { useConnectedInstancesTable } from './useConnectedInstancesTable';
|
||||||
import { ConnectedInstancesTable } from './ConnectedInstancesTable';
|
import { ConnectedInstancesTable } from './ConnectedInstancesTable';
|
||||||
@ -55,7 +54,7 @@ export const ConnectedInstances: FC = () => {
|
|||||||
instanceId,
|
instanceId,
|
||||||
ip: clientIp || '',
|
ip: clientIp || '',
|
||||||
sdkVersion: sdkVersion || '',
|
sdkVersion: sdkVersion || '',
|
||||||
lastSeen: lastSeen ? formatDateYMDHMS(lastSeen) : '',
|
lastSeen: lastSeen || '',
|
||||||
});
|
});
|
||||||
if (!currentEnvironment) {
|
if (!currentEnvironment) {
|
||||||
return [];
|
return [];
|
||||||
|
@ -2,7 +2,7 @@ import { useMemo } from 'react';
|
|||||||
import { HighlightCell } from 'component/common/Table/cells/HighlightCell/HighlightCell';
|
import { HighlightCell } from 'component/common/Table/cells/HighlightCell/HighlightCell';
|
||||||
import { useTable, useGlobalFilter, useSortBy } from 'react-table';
|
import { useTable, useGlobalFilter, useSortBy } from 'react-table';
|
||||||
import { sortTypes } from 'utils/sortTypes';
|
import { sortTypes } from 'utils/sortTypes';
|
||||||
import { TimeAgoCell } from '../../common/Table/cells/TimeAgoCell/TimeAgoCell';
|
import { TimeAgoCell } from 'component/common/Table/cells/TimeAgoCell/TimeAgoCell';
|
||||||
|
|
||||||
type ConnectedInstancesTableData = {
|
type ConnectedInstancesTableData = {
|
||||||
instanceId: string;
|
instanceId: string;
|
||||||
|
Loading…
Reference in New Issue
Block a user