aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--web/app/view/edit/Devices.js17
1 files changed, 5 insertions, 12 deletions
diff --git a/web/app/view/edit/Devices.js b/web/app/view/edit/Devices.js
index d4970eb5..9393b432 100644
--- a/web/app/view/edit/Devices.js
+++ b/web/app/view/edit/Devices.js
@@ -21,6 +21,7 @@ Ext.define('Traccar.view.edit.Devices', {
requires: [
'Ext.grid.filters.Filters',
+ 'Traccar.AttributeFormatter',
'Traccar.view.edit.DevicesController'
],
@@ -129,18 +130,6 @@ Ext.define('Traccar.view.edit.Devices', {
}
}
}, {
- text: Strings.deviceLastUpdate,
- dataIndex: 'lastUpdate',
- renderer: function (value) {
- if (value) {
- if (Traccar.app.getPreference('twelveHourFormat', false)) {
- return Ext.Date.format(value, Traccar.Style.dateTimeFormat12);
- } else {
- return Ext.Date.format(value, Traccar.Style.dateTimeFormat24);
- }
- }
- }
- }, {
text: Strings.deviceStatus,
dataIndex: 'status',
flex: 1,
@@ -159,6 +148,10 @@ Ext.define('Traccar.view.edit.Devices', {
}
}
}
+ }, {
+ text: Strings.deviceLastUpdate,
+ dataIndex: 'lastUpdate',
+ renderer: Traccar.AttributeFormatter.getFormatter('lastUpdate')
}]
}
});