diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-08-05 14:09:51 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-08-05 14:09:51 +1200 |
commit | c790266c87a165d1fc5b2ef3b13a07ec692f5f54 (patch) | |
tree | ad55faed369a654a69461f666eeea993c3984d95 /src/org/traccar/database | |
parent | d96efab59ac88c4a6f481154afbd8e071dcee219 (diff) | |
download | traccar-server-c790266c87a165d1fc5b2ef3b13a07ec692f5f54.tar.gz traccar-server-c790266c87a165d1fc5b2ef3b13a07ec692f5f54.tar.bz2 traccar-server-c790266c87a165d1fc5b2ef3b13a07ec692f5f54.zip |
Fix date and time formatting issues
Diffstat (limited to 'src/org/traccar/database')
-rw-r--r-- | src/org/traccar/database/DataManager.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/org/traccar/database/DataManager.java b/src/org/traccar/database/DataManager.java index 3cfeadae4..0b8cff03a 100644 --- a/src/org/traccar/database/DataManager.java +++ b/src/org/traccar/database/DataManager.java @@ -210,17 +210,17 @@ public class DataManager implements IdentityManager { Position position = new Position(); position.setDeviceId(device.getId()); - position.setTime(JsonConverter.parseDate("2015-05-22T12:00:01")); + position.setTime(JsonConverter.parseDate("2015-05-22T12:00:01.000Z")); position.setLatitude(-36.8785803); position.setLongitude(174.7281713); addPosition(position); - position.setTime(JsonConverter.parseDate("2015-05-22T12:00:02")); + position.setTime(JsonConverter.parseDate("2015-05-22T12:00:02.000Z")); position.setLatitude(-36.8870932); position.setLongitude(174.7473116); addPosition(position); - position.setTime(JsonConverter.parseDate("2015-05-22T12:00:03")); + position.setTime(JsonConverter.parseDate("2015-05-22T12:00:03.000Z")); position.setLatitude(-36.8932371); position.setLongitude(174.7743053); addPosition(position); |