diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2020-09-28 20:43:47 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2020-09-28 20:43:47 -0700 |
commit | 94e8c40f52b239562aded5e70e334ddbb2eea23b (patch) | |
tree | bd5d8b9425a08ac055f0617818e6e54930c4d557 /modern/src/common/formatter.js | |
parent | 9d72339c8365da80154f635dc8184b135a53bab0 (diff) | |
download | trackermap-web-94e8c40f52b239562aded5e70e334ddbb2eea23b.tar.gz trackermap-web-94e8c40f52b239562aded5e70e334ddbb2eea23b.tar.bz2 trackermap-web-94e8c40f52b239562aded5e70e334ddbb2eea23b.zip |
Page for all attributes
Diffstat (limited to 'modern/src/common/formatter.js')
-rw-r--r-- | modern/src/common/formatter.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modern/src/common/formatter.js b/modern/src/common/formatter.js index 057041e2..f04bb434 100644 --- a/modern/src/common/formatter.js +++ b/modern/src/common/formatter.js @@ -2,11 +2,13 @@ import moment from 'moment'; import t from '../common/localization'; export const formatPosition = (value, key) => { - if (value != null && typeof value == 'object') { + if (value != null && typeof value === 'object') { value = value[key]; } switch (key) { case 'fixTime': + case 'deviceTime': + case 'serverTime': return moment(value).format('LLL'); case 'latitude': case 'longitude': |