From 9a55f2b000956717d5caf6fb53793264c0376ce7 Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Fri, 12 Aug 2016 11:40:03 +0500 Subject: - Removed decimal part - Fixed license header --- web/app/AttributeFormatter.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'web') diff --git a/web/app/AttributeFormatter.js b/web/app/AttributeFormatter.js index 2e0edb6d6..274b8d028 100644 --- a/web/app/AttributeFormatter.js +++ b/web/app/AttributeFormatter.js @@ -35,8 +35,8 @@ Ext.define('Traccar.AttributeFormatter', { }, hoursFormatter: function (value) { - var hours = value / 3600000; - return (hours.toFixed(2) + ' ' + Strings.sharedHourAbbreviation); + var hours = Math.round(value / 3600000); + return (hours + ' ' + Strings.sharedHourAbbreviation); }, defaultFormatter: function (value) { -- cgit v1.2.3