aboutsummaryrefslogtreecommitdiff
path: root/modern/src/common
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-09-28 20:43:47 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2020-09-28 20:43:47 -0700
commit94e8c40f52b239562aded5e70e334ddbb2eea23b (patch)
treebd5d8b9425a08ac055f0617818e6e54930c4d557 /modern/src/common
parent9d72339c8365da80154f635dc8184b135a53bab0 (diff)
downloadetbsa-traccar-web-94e8c40f52b239562aded5e70e334ddbb2eea23b.tar.gz
etbsa-traccar-web-94e8c40f52b239562aded5e70e334ddbb2eea23b.tar.bz2
etbsa-traccar-web-94e8c40f52b239562aded5e70e334ddbb2eea23b.zip
Page for all attributes
Diffstat (limited to 'modern/src/common')
-rw-r--r--modern/src/common/formatter.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/modern/src/common/formatter.js b/modern/src/common/formatter.js
index 057041e..f04bb43 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':