aboutsummaryrefslogtreecommitdiff
path: root/modern/src/reports/TripReportPage.jsx
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2024-02-19 07:17:41 -0800
committerAnton Tananaev <anton@traccar.org>2024-02-19 07:17:41 -0800
commit32302e6bc54a65b9594d4cde4ff4c8983f97dacc (patch)
treed727397e591376e11d1aa7d63da1ee0ca259164d /modern/src/reports/TripReportPage.jsx
parentd25a7b433f3dbc69020380b14d283b1ee73f420e (diff)
downloadtrackermap-web-32302e6bc54a65b9594d4cde4ff4c8983f97dacc.tar.gz
trackermap-web-32302e6bc54a65b9594d4cde4ff4c8983f97dacc.tar.bz2
trackermap-web-32302e6bc54a65b9594d4cde4ff4c8983f97dacc.zip
Update duration formatting
Diffstat (limited to 'modern/src/reports/TripReportPage.jsx')
-rw-r--r--modern/src/reports/TripReportPage.jsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/modern/src/reports/TripReportPage.jsx b/modern/src/reports/TripReportPage.jsx
index f5b524ad..897ee506 100644
--- a/modern/src/reports/TripReportPage.jsx
+++ b/modern/src/reports/TripReportPage.jsx
@@ -6,7 +6,7 @@ import {
import GpsFixedIcon from '@mui/icons-material/GpsFixed';
import LocationSearchingIcon from '@mui/icons-material/LocationSearching';
import {
- formatDistance, formatSpeed, formatHours, formatVolume, formatTime,
+ formatDistance, formatSpeed, formatVolume, formatTime, formatNumericHours,
} from '../common/util/formatter';
import ReportFilter from './components/ReportFilter';
import { useAttributePreference, usePreference } from '../common/util/preferences';
@@ -142,7 +142,7 @@ const TripReportPage = () => {
case 'maxSpeed':
return formatSpeed(item[key], speedUnit, t);
case 'duration':
- return formatHours(item[key]);
+ return formatNumericHours(item[key], t);
case 'spentFuel':
return formatVolume(item[key], volumeUnit, t);
case 'startAddress':