diff options
author | Matjaž Črnko <matjaz.crnko@gmail.com> | 2024-03-08 10:59:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-08 10:59:29 +0100 |
commit | fe7b4800224352c628fb925c85a937684af58e6f (patch) | |
tree | d5a111f5cedbba4a10278695227447ee12113db0 /modern/src/reports/SummaryReportPage.jsx | |
parent | b87f2387ae597e57d9e2591ab01595e76b65d7c5 (diff) | |
parent | c9da10062998a231c038cd3a519f72128fcea2bb (diff) | |
download | trackermap-web-fe7b4800224352c628fb925c85a937684af58e6f.tar.gz trackermap-web-fe7b4800224352c628fb925c85a937684af58e6f.tar.bz2 trackermap-web-fe7b4800224352c628fb925c85a937684af58e6f.zip |
Merge branch 'traccar:master' into autocomplete-instead-of-single-select
Diffstat (limited to 'modern/src/reports/SummaryReportPage.jsx')
-rw-r--r-- | modern/src/reports/SummaryReportPage.jsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modern/src/reports/SummaryReportPage.jsx b/modern/src/reports/SummaryReportPage.jsx index ec5395f1..ae7e043e 100644 --- a/modern/src/reports/SummaryReportPage.jsx +++ b/modern/src/reports/SummaryReportPage.jsx @@ -5,7 +5,7 @@ import { FormControl, InputLabel, Select, MenuItem, Table, TableHead, TableRow, TableBody, TableCell, } from '@mui/material'; import { - formatDistance, formatHours, formatSpeed, formatVolume, formatTime, + formatDistance, formatSpeed, formatVolume, formatTime, formatNumericHours, } from '../common/util/formatter'; import ReportFilter from './components/ReportFilter'; import { useAttributePreference, usePreference } from '../common/util/preferences'; @@ -101,7 +101,7 @@ const SummaryReportPage = () => { case 'maxSpeed': return formatSpeed(item[key], speedUnit, t); case 'engineHours': - return formatHours(item[key]); + return formatNumericHours(item[key], t); case 'spentFuel': return formatVolume(item[key], volumeUnit, t); default: |