]> source.dussan.org Git - jackcess.git/commitdiff
specify timezone in export test (fixes #3179802)
authorJames Ahlborn <jtahlborn@yahoo.com>
Sun, 13 Feb 2011 18:07:44 +0000 (18:07 +0000)
committerJames Ahlborn <jtahlborn@yahoo.com>
Sun, 13 Feb 2011 18:07:44 +0000 (18:07 +0000)
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@510 f203690c-595d-4dc9-a70b-905162fa7fd2

test/src/java/com/healthmarketscience/jackcess/ExportTest.java

index 7979a65d76b9af6bff5bd1bf92360df6dbb4114c..4ffea196b4f40c76eeb0c51e754aae7288d19b94 100644 (file)
@@ -31,6 +31,7 @@ import java.io.BufferedWriter;
 import java.io.StringWriter;
 import java.text.DateFormat;
 import java.text.SimpleDateFormat;
+import java.util.TimeZone;
 
 import junit.framework.TestCase;
 import org.apache.commons.lang.SystemUtils;
@@ -55,8 +56,11 @@ public class ExportTest extends TestCase
   {
     DateFormat df = new SimpleDateFormat("yyyyMMdd HH:mm:ss");
 
+    TimeZone testTZ = TimeZone.getTimeZone("America/New_York");
+
     for (final FileFormat fileFormat : JetFormatTest.SUPPORTED_FILEFORMATS) {
       Database db = create(fileFormat);
+      db.setTimeZone(testTZ);
 
       Table t = new TableBuilder("test")
         .addColumn(new ColumnBuilder("col1", DataType.TEXT))