aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/ProtocolTest.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-12-09 02:54:27 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-12-09 02:54:27 +1300
commit7638564f34b182b3f9a4e650d3f180f04fe8ae28 (patch)
tree87d8e33c17b63df36f0aa662ddadd918d2e2fe45 /test/org/traccar/ProtocolTest.java
parent627069db35c2ef3a433847a546aa7a2c0e0f4d3b (diff)
downloadtrackermap-server-7638564f34b182b3f9a4e650d3f180f04fe8ae28.tar.gz
trackermap-server-7638564f34b182b3f9a4e650d3f180f04fe8ae28.tar.bz2
trackermap-server-7638564f34b182b3f9a4e650d3f180f04fe8ae28.zip
Workaround for Granit coordinates (fix #2664)
Diffstat (limited to 'test/org/traccar/ProtocolTest.java')
-rw-r--r--test/org/traccar/ProtocolTest.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/org/traccar/ProtocolTest.java b/test/org/traccar/ProtocolTest.java
index 756393288..93f3150c7 100644
--- a/test/org/traccar/ProtocolTest.java
+++ b/test/org/traccar/ProtocolTest.java
@@ -135,7 +135,9 @@ public class ProtocolTest extends BaseTest {
if (expected != null) {
if (expected.getFixTime() != null) {
- Assert.assertEquals("time", expected.getFixTime(), position.getFixTime());
+ DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS");
+ dateFormat.setTimeZone(TimeZone.getTimeZone("UTC"));
+ Assert.assertEquals("time", dateFormat.format(expected.getFixTime()), dateFormat.format(position.getFixTime()));
}
Assert.assertEquals("valid", expected.getValid(), position.getValid());
Assert.assertEquals("latitude", expected.getLatitude(), position.getLatitude(), 0.00001);