From c838485b70a72d853dd7876d91f4e168c5214184 Mon Sep 17 00:00:00 2001 From: James Ahlborn Date: Sun, 13 Feb 2011 18:07:44 +0000 Subject: [PATCH] specify timezone in export test (fixes #3179802) git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@510 f203690c-595d-4dc9-a70b-905162fa7fd2 --- .../src/java/com/healthmarketscience/jackcess/ExportTest.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/src/java/com/healthmarketscience/jackcess/ExportTest.java b/test/src/java/com/healthmarketscience/jackcess/ExportTest.java index 7979a65..4ffea19 100644 --- a/test/src/java/com/healthmarketscience/jackcess/ExportTest.java +++ b/test/src/java/com/healthmarketscience/jackcess/ExportTest.java @@ -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)) -- 2.39.5