aboutsummaryrefslogtreecommitdiff
path: root/modern/src/reports/SummaryReportPage.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/SummaryReportPage.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/SummaryReportPage.js')
-rw-r--r--modern/src/reports/SummaryReportPage.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/modern/src/reports/SummaryReportPage.js b/modern/src/reports/SummaryReportPage.js
index ca18b828..233bfe98 100644
--- a/modern/src/reports/SummaryReportPage.js
+++ b/modern/src/reports/SummaryReportPage.js
@@ -4,7 +4,7 @@ import {
FormControl, InputLabel, Select, MenuItem, Table, TableHead, TableRow, TableBody, TableCell,
} from '@mui/material';
import {
- formatDistance, formatHours, formatDate, formatSpeed, formatVolume,
+ formatDistance, formatHours, formatSpeed, formatVolume, formatTime,
} from '../common/util/formatter';
import ReportFilter from './components/ReportFilter';
import { useAttributePreference } from '../common/util/preferences';
@@ -67,7 +67,7 @@ const SummaryReportPage = () => {
case 'deviceId':
return devices[item[key]].name;
case 'startTime':
- return item[key] ? formatDate(item[key], 'YYYY-MM-DD') : null;
+ return item[key] ? formatTime(item[key], 'YYYY-MM-DD') : null;
case 'startOdometer':
case 'endOdometer':
case 'distance':