aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/web/client/model/StateReader.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/web/client/model/StateReader.java')
-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()));