diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2013-02-26 20:36:47 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2013-02-26 20:36:47 +1300 |
commit | cda6c01a2abc7f60a191d97e8b070218879f7f92 (patch) | |
tree | edf8a5a9be5d07249d86ca6e924d8925966042fc /src/org/traccar/web/client/model | |
parent | ebcedc38812405ba1cd03c518317bcf0cd52f925 (diff) | |
download | trackermap-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.java | 4 |
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())); |