mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2025-05-02 14:10:29 +03:00
parent
47a9c6555e
commit
1cdbe3f879
2 changed files with 7 additions and 4 deletions
client/src/helpers
|
@ -6,7 +6,7 @@ import round from 'lodash/round';
|
|||
|
||||
import { STATS_NAMES } from './constants';
|
||||
|
||||
const formatTime = (time) => {
|
||||
export const formatTime = (time) => {
|
||||
const parsedTime = dateParse(time);
|
||||
return dateFormat(parsedTime, 'HH:mm:ss');
|
||||
};
|
||||
|
@ -26,7 +26,7 @@ export const normalizeLogs = logs => logs.map((log) => {
|
|||
return `${type}: ${value} (ttl=${ttl})`;
|
||||
}) : [];
|
||||
return {
|
||||
time: formatTime(time),
|
||||
time,
|
||||
domain,
|
||||
type,
|
||||
response: responsesArray,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue