From 74639a742405b9e60c07f04e00138b9b6159d1c3 Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Thu, 15 Jun 2017 09:29:27 +0500 Subject: Use 'duration' formatter for 'engineHours' --- web/app/AttributeFormatter.js | 7 ------- 1 file changed, 7 deletions(-) (limited to 'web/app/AttributeFormatter.js') diff --git a/web/app/AttributeFormatter.js b/web/app/AttributeFormatter.js index 3f7c1276..aecbd8a2 100644 --- a/web/app/AttributeFormatter.js +++ b/web/app/AttributeFormatter.js @@ -51,11 +51,6 @@ Ext.define('Traccar.AttributeFormatter', { return Ext.getStore('DistanceUnits').convertValue(value, Traccar.app.getPreference('distanceUnit')); }, - hoursFormatter: function (value) { - var hours = Math.round(value / 3600000); - return (hours + ' ' + Strings.sharedHourAbbreviation); - }, - durationFormatter: function (value) { var hours, minutes; hours = Math.floor(value / 3600000); @@ -114,8 +109,6 @@ Ext.define('Traccar.AttributeFormatter', { return this.courseFormatter; } else if (key === 'distance' || key === 'accuracy') { return this.distanceFormatter; - } else if (key === 'hours') { - return this.hoursFormatter; } else if (key === 'duration') { return this.durationFormatter; } else if (key === 'deviceId') { -- cgit v1.2.3