diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2013-02-17 11:42:55 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2013-02-17 11:42:55 +1300 |
commit | 2a940c45a38cec42a6a85714f7941ee8613f48ee (patch) | |
tree | dadb0078d0896b551b7e5e7ad4861276205b3e00 /src/org/traccar/web/client/view/ArchiveView.java | |
parent | fdebc0f3b0453f7898090be98a3edf9664083471 (diff) | |
download | trackermap-web-2a940c45a38cec42a6a85714f7941ee8613f48ee.tar.gz trackermap-web-2a940c45a38cec42a6a85714f7941ee8613f48ee.tar.bz2 trackermap-web-2a940c45a38cec42a6a85714f7941ee8613f48ee.zip |
Added formatter utility
Diffstat (limited to 'src/org/traccar/web/client/view/ArchiveView.java')
-rw-r--r-- | src/org/traccar/web/client/view/ArchiveView.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/web/client/view/ArchiveView.java b/src/org/traccar/web/client/view/ArchiveView.java index 32e569eb..d510cbe1 100644 --- a/src/org/traccar/web/client/view/ArchiveView.java +++ b/src/org/traccar/web/client/view/ArchiveView.java @@ -19,6 +19,7 @@ import java.util.Date; import java.util.LinkedList; import java.util.List; +import org.traccar.web.client.ApplicationContext; import org.traccar.web.client.model.BaseStoreHandlers; import org.traccar.web.client.model.DeviceProperties; import org.traccar.web.client.model.PositionProperties; @@ -27,7 +28,6 @@ import org.traccar.web.shared.model.Position; import com.google.gwt.cell.client.DateCell; import com.google.gwt.core.client.GWT; -import com.google.gwt.i18n.client.DateTimeFormat; import com.google.gwt.uibinder.client.UiBinder; import com.google.gwt.uibinder.client.UiField; import com.google.gwt.uibinder.client.UiHandler; @@ -109,7 +109,7 @@ public class ArchiveView implements SelectionChangedEvent.SelectionChangedHandle columnConfigList.add(new ColumnConfig<Position, Boolean>(positionProperties.valid(), 0, "Valid")); ColumnConfig<Position, Date> columnConfig = new ColumnConfig<Position, Date>(positionProperties.time(), 0, "Time"); - columnConfig.setCell(new DateCell(DateTimeFormat.getFormat("yyyy-MM-dd HH:mm:ss"))); + columnConfig.setCell(new DateCell(ApplicationContext.getInstance().getFormatterUtil().getTimeFormat())); columnConfigList.add(columnConfig); columnConfigList.add(new ColumnConfig<Position, Double>(positionProperties.latitude(), 0, "Latitude")); |