diff options
author | Anton Tananaev <anton@traccar.org> | 2022-06-07 18:14:52 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-06-07 18:14:52 -0700 |
commit | 47c37648177bea8906c3b211cdcc13db0db8aa30 (patch) | |
tree | a4b340ec15c573cc3fc7d6c5290b3048168235b0 /modern/src/reports/StopReportPage.js | |
parent | f3c8201dce87cdcc414bd64e36c70e87e38d57a1 (diff) | |
download | trackermap-web-47c37648177bea8906c3b211cdcc13db0db8aa30.tar.gz trackermap-web-47c37648177bea8906c3b211cdcc13db0db8aa30.tar.bz2 trackermap-web-47c37648177bea8906c3b211cdcc13db0db8aa30.zip |
Unify time formatting
Diffstat (limited to 'modern/src/reports/StopReportPage.js')
-rw-r--r-- | modern/src/reports/StopReportPage.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modern/src/reports/StopReportPage.js b/modern/src/reports/StopReportPage.js index 00c8a41b..c5bb1003 100644 --- a/modern/src/reports/StopReportPage.js +++ b/modern/src/reports/StopReportPage.js @@ -6,7 +6,7 @@ import { import GpsFixedIcon from '@mui/icons-material/GpsFixed'; import LocationSearchingIcon from '@mui/icons-material/LocationSearching'; import { - formatDistance, formatHours, formatDate, formatVolume, + formatDistance, formatHours, formatVolume, formatTime, } from '../common/util/formatter'; import ReportFilter from './components/ReportFilter'; import { useAttributePreference } from '../common/util/preferences'; @@ -64,7 +64,7 @@ const StopReportPage = () => { switch (key) { case 'startTime': case 'endTime': - return formatDate(item[key]); + return formatTime(item[key], 'YYYY-MM-DD HH:mm'); case 'startOdometer': return formatDistance(item[key], distanceUnit, t); case 'duration': |