diff options
author | Vitaly Takmazov | 2016-01-16 19:16:41 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2016-01-16 19:16:41 +0300 |
commit | 9dfad84fa487960fde4cc4b0ac6760c8dd5f4ac9 (patch) | |
tree | a2cdbd6943c270231fc33b7c178c6d972192079d | |
parent | 143513cec90ab176e5c174fb4ed98c249652bda6 (diff) |
fix tests
-rw-r--r-- | src/test/java/com/juick/JsonTests.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/java/com/juick/JsonTests.java b/src/test/java/com/juick/JsonTests.java index 890360c1..ba01e80c 100644 --- a/src/test/java/com/juick/JsonTests.java +++ b/src/test/java/com/juick/JsonTests.java @@ -11,12 +11,14 @@ import com.juick.Message; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Calendar; +import java.util.TimeZone; public class JsonTests { @Test public void DateTest() { Message msg = new Message(); SimpleDateFormat df= new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); + df.setTimeZone(TimeZone.getTimeZone("UTC")); try { msg.setDate(df.parse("2015-01-01 05:02:10")); MessageSerializer serializer = new MessageSerializer(); |