diff options
author | Anton Tananaev <anton@traccar.org> | 2022-06-07 18:14:52 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-06-07 18:14:52 -0700 |
commit | 47c37648177bea8906c3b211cdcc13db0db8aa30 (patch) | |
tree | a4b340ec15c573cc3fc7d6c5290b3048168235b0 /modern/src/common/util | |
parent | f3c8201dce87cdcc414bd64e36c70e87e38d57a1 (diff) | |
download | trackermap-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.js | 1 |
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)); |