aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/web/client/model
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2013-02-26 20:36:47 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2013-02-26 20:36:47 +1300
commitcda6c01a2abc7f60a191d97e8b070218879f7f92 (patch)
treeedf8a5a9be5d07249d86ca6e924d8925966042fc /src/org/traccar/web/client/model
parentebcedc38812405ba1cd03c518317bcf0cd52f925 (diff)
downloadtrackermap-web-cda6c01a2abc7f60a191d97e8b070218879f7f92.tar.gz
trackermap-web-cda6c01a2abc7f60a191d97e8b070218879f7f92.tar.bz2
trackermap-web-cda6c01a2abc7f60a191d97e8b070218879f7f92.zip
Add units preference (fix #7)
Diffstat (limited to 'src/org/traccar/web/client/model')
-rw-r--r--src/org/traccar/web/client/model/StateReader.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/web/client/model/StateReader.java b/src/org/traccar/web/client/model/StateReader.java
index 733bde62..667f474b 100644
--- a/src/org/traccar/web/client/model/StateReader.java
+++ b/src/org/traccar/web/client/model/StateReader.java
@@ -20,11 +20,11 @@ public class StateReader {
List<StateItem> state = new LinkedList<StateItem>();
state.add(new StateItem("valid", toString(position.getValid())));
- state.add(new StateItem("time", ApplicationContext.getInstance().getFormatterUtil().formatTime(position.getTime())));
+ state.add(new StateItem("time", ApplicationContext.getInstance().getFormatterUtil().getTimeFormat().format(position.getTime())));
state.add(new StateItem("latitude", toString(position.getLatitude())));
state.add(new StateItem("longitude", toString(position.getLongitude())));
state.add(new StateItem("altitude", toString(position.getAltitude())));
- state.add(new StateItem("speed", toString(position.getSpeed())));
+ state.add(new StateItem("speed", ApplicationContext.getInstance().getFormatterUtil().getSpeedFormat().format(position.getSpeed())));
state.add(new StateItem("course", toString(position.getCourse())));
state.add(new StateItem("power", toString(position.getPower())));
state.add(new StateItem("address", position.getAddress()));