aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/reports
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-03-24 23:28:27 +1300
committerGitHub <noreply@github.com>2017-03-24 23:28:27 +1300
commitf094a26a9f66a85ee3111a4c8ca8a46276cdf968 (patch)
tree72de6c42c337d7f4efac3c003ef8abbd782a02d0 /src/org/traccar/reports
parent8b343b37d623daf74692b62d2ffcfc6e4bce9bd6 (diff)
parent4597f97cf2020f900f36af2867d1129d9bebd54d (diff)
downloadtrackermap-server-f094a26a9f66a85ee3111a4c8ca8a46276cdf968.tar.gz
trackermap-server-f094a26a9f66a85ee3111a4c8ca8a46276cdf968.tar.bz2
trackermap-server-f094a26a9f66a85ee3111a4c8ca8a46276cdf968.zip
Merge pull request #3050 from Abyss777/format_template
Format speed in notification templates
Diffstat (limited to 'src/org/traccar/reports')
-rw-r--r--src/org/traccar/reports/ReportUtils.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/org/traccar/reports/ReportUtils.java b/src/org/traccar/reports/ReportUtils.java
index e2a743b2f..02e3764bc 100644
--- a/src/org/traccar/reports/ReportUtils.java
+++ b/src/org/traccar/reports/ReportUtils.java
@@ -17,6 +17,7 @@
package org.traccar.reports;
import org.apache.velocity.tools.generic.DateTool;
+import org.apache.velocity.tools.generic.NumberTool;
import org.jxls.area.Area;
import org.jxls.builder.xls.XlsCommentAreaBuilder;
import org.jxls.common.CellRef;
@@ -115,6 +116,7 @@ public final class ReportUtils {
jxlsContext.putVar("speedUnit", getSpeedUnit(userId));
jxlsContext.putVar("webUrl", Context.getVelocityEngine().getProperty("web.url"));
jxlsContext.putVar("dateTool", new DateTool());
+ jxlsContext.putVar("numberTool", new NumberTool());
jxlsContext.putVar("timezone", getTimezone(userId));
jxlsContext.putVar("locale", Locale.getDefault());
jxlsContext.putVar("bracketsRegex", "[\\{\\}\"]");