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.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/org/traccar/web/client/model/StateReader.java b/src/org/traccar/web/client/model/StateReader.java
index a3549179..733bde62 100644
--- a/src/org/traccar/web/client/model/StateReader.java
+++ b/src/org/traccar/web/client/model/StateReader.java
@@ -3,11 +3,10 @@ package org.traccar.web.client.model;
import java.util.LinkedList;
import java.util.List;
+import org.traccar.web.client.ApplicationContext;
import org.traccar.web.shared.model.Position;
import org.traccar.web.shared.model.XmlParser;
-import com.google.gwt.i18n.client.DateTimeFormat;
-
public class StateReader {
private static String toString(Object object) {
@@ -21,7 +20,7 @@ public class StateReader {
List<StateItem> state = new LinkedList<StateItem>();
state.add(new StateItem("valid", toString(position.getValid())));
- state.add(new StateItem("time", DateTimeFormat.getFormat("yyyy-MM-dd HH:mm:ss").format(position.getTime())));
+ state.add(new StateItem("time", ApplicationContext.getInstance().getFormatterUtil().formatTime(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())));