aboutsummaryrefslogtreecommitdiff
path: root/modern/src/common/util
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-06-07 18:14:52 -0700
committerAnton Tananaev <anton@traccar.org>2022-06-07 18:14:52 -0700
commit47c37648177bea8906c3b211cdcc13db0db8aa30 (patch)
treea4b340ec15c573cc3fc7d6c5290b3048168235b0 /modern/src/common/util
parentf3c8201dce87cdcc414bd64e36c70e87e38d57a1 (diff)
downloadtrackermap-web-47c37648177bea8906c3b211cdcc13db0db8aa30.tar.gz
trackermap-web-47c37648177bea8906c3b211cdcc13db0db8aa30.tar.bz2
trackermap-web-47c37648177bea8906c3b211cdcc13db0db8aa30.zip
Unify time formatting
Diffstat (limited to 'modern/src/common/util')
-rw-r--r--modern/src/common/util/formatter.js1
1 files changed, 0 insertions, 1 deletions
diff --git a/modern/src/common/util/formatter.js b/modern/src/common/util/formatter.js
index 43f172f9..d3ee835a 100644
--- a/modern/src/common/util/formatter.js
+++ b/modern/src/common/util/formatter.js
@@ -10,7 +10,6 @@ export const formatNumber = (value, precision = 1) => Number(value.toFixed(preci
export const formatPercentage = (value) => `${value}%`;
-export const formatDate = (value, format = 'YYYY-MM-DD HH:mm') => moment(value).format(format);
export const formatTime = (value, format = 'YYYY-MM-DD HH:mm:ss') => moment(value).format(format);
export const formatStatus = (value, t) => t(prefixString('deviceStatus', value));