diff options
author | Anton Tananaev <anton@traccar.org> | 2024-05-09 07:24:14 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2024-05-09 07:24:14 -0700 |
commit | c4754d0befac1a0bfb85f56419dade8378b98b32 (patch) | |
tree | c71409e6e312848df9a537acf5870bddb2e81c9b /src/other | |
parent | f6d15a1a445a1abd18d89a803b8617957c6970b6 (diff) | |
download | trackermap-web-c4754d0befac1a0bfb85f56419dade8378b98b32.tar.gz trackermap-web-c4754d0befac1a0bfb85f56419dade8378b98b32.tar.bz2 trackermap-web-c4754d0befac1a0bfb85f56419dade8378b98b32.zip |
Automatic locale time formatting
Diffstat (limited to 'src/other')
-rw-r--r-- | src/other/ReplayPage.jsx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/other/ReplayPage.jsx b/src/other/ReplayPage.jsx index 1050b976..1425c495 100644 --- a/src/other/ReplayPage.jsx +++ b/src/other/ReplayPage.jsx @@ -25,7 +25,6 @@ import { useCatch } from '../reactHelper'; import MapCamera from '../map/MapCamera'; import MapGeofence from '../map/MapGeofence'; import StatusCard from '../common/components/StatusCard'; -import { usePreference } from '../common/util/preferences'; const useStyles = makeStyles((theme) => ({ root: { @@ -82,8 +81,6 @@ const ReplayPage = () => { const navigate = useNavigate(); const timerRef = useRef(); - const hours12 = usePreference('twelveHourFormat'); - const defaultDeviceId = useSelector((state) => state.devices.selectedId); const [positions, setPositions] = useState([]); @@ -210,7 +207,7 @@ const ReplayPage = () => { <IconButton onClick={() => setIndex((index) => index + 1)} disabled={playing || index >= positions.length - 1}> <FastForwardIcon /> </IconButton> - {formatTime(positions[index].fixTime, 'seconds', hours12)} + {formatTime(positions[index].fixTime, 'seconds')} </div> </> ) : ( |