aboutsummaryrefslogtreecommitdiff
path: root/modern
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-07-21 15:42:59 -0700
committerAnton Tananaev <anton@traccar.org>2022-07-21 18:31:07 -0700
commit98cb21230d938ac04f53a4425e5d3eae9cfdbfda (patch)
tree9d7c99911ba3fefa969c05fbb1731dafff053315 /modern
parent1225454024a42697dbb1721685f3066a05f5eac8 (diff)
downloadtrackermap-web-98cb21230d938ac04f53a4425e5d3eae9cfdbfda.tar.gz
trackermap-web-98cb21230d938ac04f53a4425e5d3eae9cfdbfda.tar.bz2
trackermap-web-98cb21230d938ac04f53a4425e5d3eae9cfdbfda.zip
Correct hours value
Diffstat (limited to 'modern')
-rw-r--r--modern/src/settings/AccumulatorsPage.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/modern/src/settings/AccumulatorsPage.js b/modern/src/settings/AccumulatorsPage.js
index 500c4e4a..363bc376 100644
--- a/modern/src/settings/AccumulatorsPage.js
+++ b/modern/src/settings/AccumulatorsPage.js
@@ -89,8 +89,8 @@ const AccumulatorsPage = () => {
<AccordionDetails className={classes.details}>
<TextField
type="number"
- value={item.hours / 1000}
- onChange={(event) => setItem({ ...item, hours: Number(event.target.value) * 1000 })}
+ value={item.hours / 3600000}
+ onChange={(event) => setItem({ ...item, hours: Number(event.target.value) * 3600000 })}
label={t('positionHours')}
/>
<TextField