diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-01-22 18:20:50 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-01-22 18:20:50 +1300 |
commit | 68b2d3ab8897114dac8cd92618cf0777f630750a (patch) | |
tree | 9a7bd794bea8281e06340be957eb0c2305d1c223 /src/org/traccar/database/DataManager.java | |
parent | d6b498b1798b1ff2059a1338ca68e958699ef028 (diff) | |
download | traccar-server-68b2d3ab8897114dac8cd92618cf0777f630750a.tar.gz traccar-server-68b2d3ab8897114dac8cd92618cf0777f630750a.tar.bz2 traccar-server-68b2d3ab8897114dac8cd92618cf0777f630750a.zip |
Use consistent server time
Diffstat (limited to 'src/org/traccar/database/DataManager.java')
-rw-r--r-- | src/org/traccar/database/DataManager.java | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/org/traccar/database/DataManager.java b/src/org/traccar/database/DataManager.java index f813426d3..1f6315d92 100644 --- a/src/org/traccar/database/DataManager.java +++ b/src/org/traccar/database/DataManager.java @@ -335,13 +335,6 @@ public class DataManager { .executeQuery(Position.class); } - public void addPosition(Position position) throws SQLException { - position.setId(QueryBuilder.create(dataSource, getQuery(ACTION_INSERT, Position.class), true) - .setObject(position) - .setDate("serverTime", new Date()) - .executeUpdate()); - } - public void updateLatestPosition(Position position) throws SQLException { QueryBuilder.create(dataSource, getQuery("database.updateLatestPosition")) .setDate("now", new Date()) |