From 1f57b64574778a3f26e0f23c7878c8495e6c5f89 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Thu, 22 Oct 2015 16:59:48 +1300 Subject: Fix time formatting issue --- test/org/traccar/ProtocolDecoderTest.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/org/traccar/ProtocolDecoderTest.java b/test/org/traccar/ProtocolDecoderTest.java index 8aec40c77..f58de880a 100644 --- a/test/org/traccar/ProtocolDecoderTest.java +++ b/test/org/traccar/ProtocolDecoderTest.java @@ -18,6 +18,7 @@ import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; import java.util.List; +import java.util.TimeZone; public class ProtocolDecoderTest { @@ -136,6 +137,7 @@ public class ProtocolDecoderTest { if (expected.getFixTime() != null) { DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); + dateFormat.setTimeZone(TimeZone.getTimeZone("UTC")); Assert.assertEquals("time", dateFormat.format(expected.getFixTime()), dateFormat.format(position.getFixTime())); } -- cgit v1.2.3