summaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/serialization/SerializerTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'uitest/src/com/vaadin/tests/serialization/SerializerTest.java')
-rw-r--r--uitest/src/com/vaadin/tests/serialization/SerializerTest.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/uitest/src/com/vaadin/tests/serialization/SerializerTest.java b/uitest/src/com/vaadin/tests/serialization/SerializerTest.java
index 1184be79d4..d4849ce667 100644
--- a/uitest/src/com/vaadin/tests/serialization/SerializerTest.java
+++ b/uitest/src/com/vaadin/tests/serialization/SerializerTest.java
@@ -16,6 +16,7 @@
package com.vaadin.tests.serialization;
+import java.text.DateFormat;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
@@ -23,9 +24,11 @@ import java.util.Date;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
+import java.util.Locale;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
+import java.util.TimeZone;
import com.vaadin.annotations.Widgetset;
import com.vaadin.server.VaadinRequest;
@@ -321,7 +324,11 @@ public class SerializerTest extends AbstractTestUI {
@Override
public void sendDate(Date date) {
- log.log("sendDate: " + date.toString());
+ DateFormat format = DateFormat.getDateTimeInstance(
+ DateFormat.LONG, DateFormat.FULL,
+ new Locale("en", "fi"));
+ format.setTimeZone(TimeZone.getTimeZone("UTC"));
+ log.log("sendDate: " + format.format(date));
}
});