diff options
author | Anton Tananaev <anton@traccar.org> | 2022-05-02 18:08:33 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-05-02 18:08:33 -0700 |
commit | 23189d6bc945ab4e26e336a42dce138d0bbb3523 (patch) | |
tree | ed0b1410206a1dd0bfa3dbe05be5dd799be81dd7 /modern/src/reports | |
parent | f52be84522da7f8e1c2b19d3484250e275252799 (diff) | |
download | trackermap-web-23189d6bc945ab4e26e336a42dce138d0bbb3523.tar.gz trackermap-web-23189d6bc945ab4e26e336a42dce138d0bbb3523.tar.bz2 trackermap-web-23189d6bc945ab4e26e336a42dce138d0bbb3523.zip |
Remove position formatter
Diffstat (limited to 'modern/src/reports')
-rw-r--r-- | modern/src/reports/ReplayPage.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modern/src/reports/ReplayPage.js b/modern/src/reports/ReplayPage.js index 9840ea8e..08563b3a 100644 --- a/modern/src/reports/ReplayPage.js +++ b/modern/src/reports/ReplayPage.js @@ -13,7 +13,7 @@ import { useSelector } from 'react-redux'; import Map from '../map/Map'; import ReplayPathMap from '../map/ReplayPathMap'; import PositionsMap from '../map/PositionsMap'; -import { formatPosition } from '../common/formatter'; +import { formatTime } from '../common/formatter'; import ReportFilter from './ReportFilter'; import { useTranslation } from '../LocalizationProvider'; @@ -160,7 +160,7 @@ const ReplayPage = () => { value={index} onChange={(_, index) => setIndex(index)} valueLabelDisplay="auto" - valueLabelFormat={(i) => (i < positions.length ? formatPosition(positions[i], 'fixTime') : '')} + valueLabelFormat={(i) => (i < positions.length ? formatTime(positions[i]) : '')} ValueLabelComponent={TimeLabel} /> </Grid> @@ -181,7 +181,7 @@ const ReplayPage = () => { <FastForwardIcon /> </IconButton> </Grid> - <Grid item xs>{formatPosition(positions[index], 'fixTime')}</Grid> + <Grid item xs>{formatTime(positions[index])}</Grid> </Grid> </Grid> </Paper> |