aboutsummaryrefslogtreecommitdiff
path: root/modern/src/common
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/common
parentd25a7b433f3dbc69020380b14d283b1ee73f420e (diff)
downloadtrackermap-web-32302e6bc54a65b9594d4cde4ff4c8983f97dacc.tar.gz
trackermap-web-32302e6bc54a65b9594d4cde4ff4c8983f97dacc.tar.bz2
trackermap-web-32302e6bc54a65b9594d4cde4ff4c8983f97dacc.zip
Update duration formatting
Diffstat (limited to 'modern/src/common')
-rw-r--r--modern/src/common/util/formatter.js2
1 files changed, 0 insertions, 2 deletions
diff --git a/modern/src/common/util/formatter.js b/modern/src/common/util/formatter.js
index aeacc145..7b7fc96d 100644
--- a/modern/src/common/util/formatter.js
+++ b/modern/src/common/util/formatter.js
@@ -66,8 +66,6 @@ export const formatSpeed = (value, unit, t) => `${speedFromKnots(value, unit).to
export const formatVolume = (value, unit, t) => `${volumeFromLiters(value, unit).toFixed(2)} ${volumeUnitString(unit, t)}`;
-export const formatHours = (value) => dayjs.duration(value).humanize();
-
export const formatNumericHours = (value, t) => {
const hours = Math.floor(value / 3600000);
const minutes = Math.floor((value % 3600000) / 60000);