aboutsummaryrefslogtreecommitdiff
path: root/modern/src/common/formatter.js
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/common/formatter.js')
-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 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':