From 47c37648177bea8906c3b211cdcc13db0db8aa30 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 7 Jun 2022 18:14:52 -0700 Subject: Unify time formatting --- modern/src/reports/SummaryReportPage.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modern/src/reports/SummaryReportPage.js') 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': -- cgit v1.2.3