aboutsummaryrefslogtreecommitdiff
path: root/modern/src/reports/EventReportPage.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-06-07 18:14:52 -0700
committerAnton Tananaev <anton@traccar.org>2022-06-07 18:14:52 -0700
commit47c37648177bea8906c3b211cdcc13db0db8aa30 (patch)
treea4b340ec15c573cc3fc7d6c5290b3048168235b0 /modern/src/reports/EventReportPage.js
parentf3c8201dce87cdcc414bd64e36c70e87e38d57a1 (diff)
downloadtrackermap-web-47c37648177bea8906c3b211cdcc13db0db8aa30.tar.gz
trackermap-web-47c37648177bea8906c3b211cdcc13db0db8aa30.tar.bz2
trackermap-web-47c37648177bea8906c3b211cdcc13db0db8aa30.zip
Unify time formatting
Diffstat (limited to 'modern/src/reports/EventReportPage.js')
-rw-r--r--modern/src/reports/EventReportPage.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/modern/src/reports/EventReportPage.js b/modern/src/reports/EventReportPage.js
index 61b55fcc..87ea1ee8 100644
--- a/modern/src/reports/EventReportPage.js
+++ b/modern/src/reports/EventReportPage.js
@@ -3,7 +3,7 @@ import {
FormControl, InputLabel, Select, MenuItem, Table, TableHead, TableRow, TableCell, TableBody,
} from '@mui/material';
import { useSelector } from 'react-redux';
-import { formatDate } from '../common/util/formatter';
+import { formatTime } from '../common/util/formatter';
import ReportFilter from './components/ReportFilter';
import { prefixString } from '../common/util/stringUtils';
import { useTranslation } from '../common/components/LocalizationProvider';
@@ -75,7 +75,7 @@ const EventReportPage = () => {
const formatValue = (item, key) => {
switch (key) {
case 'eventTime':
- return formatDate(item[key]);
+ return formatTime(item[key]);
case 'type':
return t(prefixString('event', item[key]));
case 'geofenceId':