aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-08-12 11:40:03 +0500
committerAbyss777 <abyss@fox5.ru>2016-08-12 11:40:03 +0500
commit9a55f2b000956717d5caf6fb53793264c0376ce7 (patch)
tree7f1f31d53010e652aa8396f9b1ee50f645780a4e /web
parent8fa931a45755b14f61bcc699296337efefc46160 (diff)
downloadtrackermap-server-9a55f2b000956717d5caf6fb53793264c0376ce7.tar.gz
trackermap-server-9a55f2b000956717d5caf6fb53793264c0376ce7.tar.bz2
trackermap-server-9a55f2b000956717d5caf6fb53793264c0376ce7.zip
- Removed decimal part
- Fixed license header
Diffstat (limited to 'web')
-rw-r--r--web/app/AttributeFormatter.js4
1 files changed, 2 insertions, 2 deletions
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) {